/* aruku Pilates Studio — 社員研修サイト スタイル */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --pink:        #d37d9f;   /* aruku-studio.com --color_main */
  --pink-light:  #f0cdd9;   /* aruku-studio.com 準拠 */
  --pink-dark:   #9e5e77;   /* aruku-studio.com --color_main_dark */
  --pink-pale:   #fdf3f7;   /* aruku-studio.com 準拠 */
  --gray:        #9E9B9E;
  --gray-light:  #F2F0F1;
  --dark:        #2A2828;
  --text:        #4A4747;
  --white:       #FFFFFF;
  --bg:          #F7F4F5;
  --border:      #E8E3E5;
  --shadow-sm:   0 2px 12px rgba(60,40,50,.06);
  --shadow:      0 6px 28px rgba(60,40,50,.10);
  --shadow-lg:   0 16px 56px rgba(60,40,50,.14);
  --radius:      18px;
  --radius-sm:   10px;
  --transition:  0.24s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink-dark); }
button { cursor: pointer; border: none; font-family: inherit; }

/* =====================================================
   LOGIN PAGE
===================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,115,144,.10) 0%, transparent 65%);
  top: -240px; right: -200px;
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,173,176,.08) 0%, transparent 65%);
  bottom: -120px; left: -120px;
  pointer-events: none;
}

.login-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(200,115,144,.07);
  padding: 60px 52px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-logo {
  width: 180px;
  margin-bottom: 20px;
}

/* ロゴ下の装飾ライン */
.login-logo-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.login-logo-line::before,
.login-logo-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.login-logo-line::after {
  background: linear-gradient(90deg, var(--border), transparent);
}

.login-subtitle {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--pink);
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
}

.login-card h2 {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.form-group { margin-bottom: 18px; text-align: left; }

.form-group label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  letter-spacing: 0.04em;
}
.form-group input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(200,115,144,.09);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent);
}
.btn-primary:hover {
  background: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,115,144,.32);
}
.btn-primary:active { transform: translateY(0); }

.login-error {
  color: #c0394f;
  font-size: 12px;
  margin-top: 12px;
  display: none;
  letter-spacing: 0.04em;
}
.login-note {
  font-size: 11px;
  color: var(--gray);
  margin-top: 36px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.header-logo { height: 30px; }
.header-right { display: flex; align-items: center; gap: 20px; }

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0;
}

.btn-logout {
  font-size: 11px;
  color: var(--gray);
  background: none;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-logout:hover {
  color: var(--dark);
  border-color: var(--dark);
  background: var(--gray-light);
}

/* =====================================================
   MAIN LAYOUT
===================================================== */
.main-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 52px 40px 88px;
}

/* =====================================================
   HERO
===================================================== */
.hero-section {
  background: var(--white);
  border-radius: 22px;
  padding: 48px 56px;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-section::before {
  content: 'TRAINING';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 140px;
  font-weight: 600;
  color: var(--border);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  line-height: 1.25;
}
.hero-text p { font-size: 14px; color: var(--gray); line-height: 1.9; }
.hero-text-label {
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--pink);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.hero-progress { text-align: center; min-width: 160px; position: relative; z-index: 1; }

.progress-circle-wrap {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 12px;
}
.progress-circle-wrap svg {
  transform: rotate(-90deg);
  width: 120px; height: 120px;
}
.progress-ring-bg { fill: none; stroke: var(--gray-light); stroke-width: 7; }
.progress-ring-fill {
  fill: none;
  stroke: var(--pink);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
}

.progress-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}
.progress-label span {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray);
  display: block;
  margin-top: 3px;
  font-family: 'Noto Sans JP', sans-serif;
}
.hero-progress > p {
  font-size: 9px;
  color: var(--gray);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

/* =====================================================
   SECTION TITLE
===================================================== */
.section-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =====================================================
   BIG CATEGORY CARDS  (editorial style)
===================================================== */
.bigcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}

.bigcat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 44px 40px 36px;
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

/* Ghost ordinal */
.bigcat-ordinal {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 88px;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  color: var(--border);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.32s ease, opacity 0.32s ease;
  opacity: 0.9;
}

/* Top border accent */
.bigcat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.bigcat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,115,144,.2);
}
.bigcat-card:hover::before { transform: scaleX(1); }
.bigcat-card:hover .bigcat-ordinal {
  color: rgba(200,115,144,.14);
  opacity: 1;
}

/* Card head */
.bigcat-head { flex: 1; }

/* SVGアイコンラッパー */
.bigcat-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--pink);
  transition: background 0.32s ease, color 0.32s ease, box-shadow 0.32s ease;
  box-shadow: 0 4px 16px rgba(200,115,144,.12);
}
.bigcat-card:hover .bigcat-icon-wrap {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(200,115,144,.30);
}

/* 旧emoji用 (フォールバック) */
.bigcat-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}

.bigcat-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.bigcat-subtitle {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.8;
  max-width: 260px;
}

/* Card foot */
.bigcat-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.bigcat-foot-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bigcat-stats { display: flex; gap: 28px; }

.bigcat-stat-num {
  font-size: 34px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
  font-family: 'Cormorant Garamond', serif;
  transition: color var(--transition);
}
.bigcat-card:hover .bigcat-stat-num { color: var(--pink); }

.bigcat-stat-label {
  font-size: 8px;
  color: var(--gray);
  margin-top: 4px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.bigcat-progress-bar {
  width: 100%; height: 2px;
  background: var(--gray-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.bigcat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ENTER button — underline style */
.bigcat-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.28s ease;
}
.bigcat-enter::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1.5px;
  background: var(--dark);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), background 0.28s ease;
}
.bigcat-card:hover .bigcat-enter { color: var(--pink); }
.bigcat-card:hover .bigcat-enter::after {
  transform: scaleX(1);
  background: var(--pink);
}
.bigcat-enter-arrow {
  display: inline-block;
  transition: transform 0.28s ease;
}
.bigcat-card:hover .bigcat-enter-arrow { transform: translateX(4px); }

/* =====================================================
   SUB CATEGORY HEADER
===================================================== */
.subcat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn-back:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-pale); }

.subcat-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}

/* =====================================================
   CATEGORY CARDS
===================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(200,115,144,.18);
}

/* 小カテゴリーSVGアイコンラッパー */
.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--pink);
  transition: background 0.3s ease, color 0.3s ease;
  box-shadow: 0 3px 12px rgba(200,115,144,.10);
}
.category-card:hover .card-icon-wrap {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: var(--white);
}

/* 旧emoji用 (フォールバック) */
.card-icon { font-size: 24px; margin-bottom: 12px; }

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.card-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.card-lesson-count { font-size: 10px; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; }
.card-progress-text { font-size: 13px; font-weight: 700; color: var(--pink); font-family: 'Cormorant Garamond', serif; }

.card-progress-bar {
  width: 100%; height: 3px;
  background: var(--gray-light);
  border-radius: 2px;
  overflow: hidden;
}
.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.4,0,0.2,1);
}

.card-status-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-complete { background: #E8F5E9; color: #2E7D32; }
.badge-progress { background: var(--pink-light); color: var(--pink-dark); }
.badge-new      { background: var(--gray-light); color: var(--gray); }

/* =====================================================
   LESSON PAGE
===================================================== */
.lesson-page .main-content { max-width: 960px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--pink); }
.breadcrumb-sep { opacity: .35; }

.lesson-header { margin-bottom: 28px; }

.lesson-category-label {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--pink);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lesson-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  line-height: 1.4;
}
.lesson-meta { display: flex; gap: 20px; font-size: 11px; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; }

/* VIDEO */
.video-container {
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}
.video-container video,
.video-container iframe { width: 100%; height: 100%; display: block; }

.video-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  background: #221f1f;
}
.video-placeholder-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.3; }
.video-placeholder p { font-size: 12px; opacity: 0.4; letter-spacing: 0.1em; }
.video-placeholder code {
  font-size: 11px;
  background: rgba(255,255,255,.07);
  padding: 8px 16px;
  border-radius: 6px;
  margin-top: 12px;
  color: rgba(255,255,255,.5);
  display: block;
}

/* LESSON BODY */
.lesson-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

.lesson-description {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.lesson-description h3 {
  font-size: 9px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lesson-description p {
  font-size: 14px;
  color: var(--text);
  line-height: 2;
}

.lesson-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-size: 9px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.btn-complete {
  width: 100%;
  padding: 13px;
  background: var(--white);
  color: var(--pink);
  border: 1.5px solid var(--pink);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all var(--transition);
  margin-bottom: 10px;
}
.btn-complete:hover { background: var(--pink); color: var(--white); }
.btn-complete.completed { background: #E8F5E9; color: #2E7D32; border-color: #4CAF50; }

.btn-next {
  width: 100%;
  padding: 13px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-next:hover { background: var(--pink); box-shadow: 0 4px 16px rgba(200,115,144,.28); }

.nav-lessons { list-style: none; }
.nav-lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1.5;
}
.nav-lesson-item:last-child { border-bottom: none; }
.nav-lesson-item:hover { color: var(--pink); }
.nav-lesson-item.active { color: var(--pink); font-weight: 700; }

.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 6px;
}
.nav-dot.done    { background: var(--pink); }
.nav-dot.current { background: var(--dark); }

/* NAV BUTTONS */
.lesson-nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.btn-prev {
  flex: 1;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-prev:hover { border-color: var(--pink); color: var(--pink); }

.btn-nav-next {
  flex: 1;
  padding: 13px;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-nav-next:hover { background: var(--pink-dark); box-shadow: 0 4px 16px rgba(200,115,144,.28); }

/* =====================================================
   PHASE BADGE
===================================================== */
.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.phase-before  { background: #EDE7F6; color: #5E35B1; }
.phase-3months { background: #E3F2FD; color: #1565C0; }
.phase-6months { background: #E8F5E9; color: #2E7D32; }
.phase-1year   { background: #FFF3E0; color: #E65100; }

/* =====================================================
   QUIZ
===================================================== */
.quiz-page .main-content { max-width: 760px; }

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.quiz-progress-bar-wrap { flex: 1; min-width: 180px; }
.quiz-progress-label {
  font-size: 9px;
  color: var(--gray);
  margin-bottom: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.quiz-progress-bar {
  height: 3px;
  background: var(--gray-light);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.quiz-counter { font-size: 13px; font-weight: 700; color: var(--dark); white-space: nowrap; letter-spacing: 0.06em; }

.question-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 44px 40px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.3s ease;
}

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

.question-number {
  font-size: 9px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.question-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 28px;
}

.options-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.option-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.option-item:hover:not(:disabled) { border-color: var(--pink); background: var(--pink-pale); }
.option-item.selected { border-color: var(--pink); background: var(--pink-pale); color: var(--pink-dark); font-weight: 600; }
.option-item.correct  { border-color: #4CAF50; background: #E8F5E9; color: #2E7D32; font-weight: 600; }
.option-item.wrong    { border-color: #EF5350; background: #FFEBEE; color: #C62828; }
.option-item:disabled { cursor: default; }

.option-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.option-item.selected .option-letter { background: var(--pink); color: var(--white); }
.option-item.correct  .option-letter { background: #4CAF50; color: var(--white); }
.option-item.wrong    .option-letter { background: #EF5350; color: var(--white); }

.explanation-box {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.9;
  display: none;
  animation: fadeUp 0.3s ease;
}
.explanation-box.correct-bg { background: #E8F5E9; border-left: 3px solid #4CAF50; color: #1B5E20; }
.explanation-box.wrong-bg   { background: #FFEBEE; border-left: 3px solid #EF5350; color: #B71C1C; }
.explanation-label { font-weight: 700; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

.quiz-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; }

.btn-quiz-next {
  padding: 13px 36px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-quiz-next:hover { background: var(--pink); box-shadow: 0 4px 16px rgba(200,115,144,.30); }
.btn-quiz-next:disabled { background: var(--gray-light); color: var(--gray); cursor: default; box-shadow: none; }

/* RESULT */
.result-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 64px 44px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.result-icon { font-size: 56px; margin-bottom: 18px; }
.result-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.02em; }
.result-title.pass { color: #2E7D32; }
.result-title.fail { color: var(--pink-dark); }

.result-score {
  font-size: 80px;
  font-weight: 600;
  color: var(--pink);
  margin: 24px 0 6px;
  line-height: 1;
  font-family: 'Cormorant Garamond', serif;
}
.result-score span { font-size: 20px; color: var(--gray); font-weight: 400; font-family: inherit; }
.result-desc { font-size: 14px; color: var(--text); opacity: .8; margin-bottom: 40px; line-height: 2; }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-retry {
  padding: 13px 32px;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--white);
  transition: all var(--transition);
}
.btn-retry:hover { background: var(--dark); color: var(--white); }

.btn-dashboard {
  padding: 13px 32px;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-dashboard:hover { background: var(--pink-dark); box-shadow: 0 4px 16px rgba(200,115,144,.28); }

/* quiz badge */
.quiz-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; padding: 4px 10px; border-radius: 20px;
  font-weight: 700; margin-top: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.quiz-badge-pass { background: #E8F5E9; color: #2E7D32; }
.quiz-badge-fail { background: #FFEBEE; color: #C62828; }
.quiz-badge-none { background: var(--gray-light); color: var(--gray); }

/* =====================================================
   LESSONS LIST
===================================================== */
.lessons-section {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.lessons-header {
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.lessons-header h3 { font-size: 14px; font-weight: 700; color: var(--dark); letter-spacing: 0.02em; }

.lesson-item {
  display: flex; align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
  gap: 16px;
}
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: var(--pink-pale); }

.lesson-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--dark);
  flex-shrink: 0;
}
.lesson-num.done { background: var(--pink-light); color: var(--pink); }

.lesson-info { flex: 1; }
.lesson-title { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.lesson-duration { font-size: 11px; color: var(--gray); letter-spacing: 0.06em; }
.lesson-arrow { font-size: 14px; color: var(--gray); }

/* =====================================================
   TOAST
===================================================== */
.toast {
  position: fixed;
  bottom: 36px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--dark);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  letter-spacing: 0.06em;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================
   ANIMATION
===================================================== */
.view { animation: fadeUp 0.32s cubic-bezier(0.4,0,0.2,1); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .bigcat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .main-content { padding: 28px 20px 64px; }
  .hero-section { flex-direction: column; padding: 36px 28px; text-align: center; }
  .hero-section::before { font-size: 80px; opacity: 0.25; }
  .category-grid { grid-template-columns: 1fr; }
  .lesson-body { grid-template-columns: 1fr; }
  .lesson-sidebar { order: -1; }
  .login-card { padding: 44px 28px; }
  .question-card { padding: 32px 24px; }
  .bigcat-card { min-height: auto; padding: 36px 28px 28px; }
  .bigcat-ordinal { font-size: 64px; }
}
