:root {
  --bg-deep: #080911;
  --bg-surface: #0f111f;
  --bg-card: #141629;
  --bg-card-hover: #1a1e38;
  --border-neon-purple: #3e2268;
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(168, 85, 247, 0.35);
  
  --neon-lime: #b6ff00;
  --neon-lime-glow: rgba(182, 255, 0, 0.4);
  --neon-purple: #9d4edd;
  --neon-pink: #ff5c8a;
  --neon-blue: #38bdf8;
  --neon-orange: #fb923c;
  
  --text-white: #ffffff;
  --text-muted: #8e95b0;
  --text-dim: #5c627a;

  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-brush: 'Yuji Boku', 'Noto Sans JP', cursive;
  --font-display: 'Outfit', sans-serif;

  --radius-card: 22px;
  --radius-pill: 32px;
  --radius-dock: 36px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: #040509;
  color: var(--text-white);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* Ambient glow in desktop background */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow-top {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.25), transparent 70%);
}
.glow-bottom {
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(182, 255, 0, 0.12), transparent 70%);
}

/* Main Mobile/App Container (Centered, Responsive) */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(157, 78, 221, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

/* Background SVGs */
.doodle-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}
.doodle-svg {
  width: 100%;
  height: 100%;
}
.doodle-lime { stroke: var(--neon-lime); }
.doodle-purple { stroke: var(--neon-purple); }
.doodle-pink { stroke: var(--neon-pink); }

/* Screen View Panels */
.screen-view {
  display: none;
  width: 100%;
  padding: 16px 18px 110px 18px; /* space for floating bottom dock */
  position: relative;
  z-index: 2;
  animation: fadeIn 0.25s ease-out;
}
.screen-view.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reusable Neon Card Style */
.neon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

/* ======================================================== */
/* APP HEADER                                              */
/* ======================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 16px 0;
}
.brand-kanji-title {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.kanji-brush-brand {
  font-family: var(--font-brush);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 40%, var(--neon-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(182, 255, 0, 0.4));
}
.brand-latin {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sparkle-star {
  color: var(--neon-lime);
  font-size: 1.2rem;
  animation: spinStar 4s linear infinite;
}
@keyframes spinStar {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-round-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #fff;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.icon-round-btn:active {
  transform: scale(0.92);
}
.dot-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--neon-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-lime);
}
.user-avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--neon-lime);
  overflow: hidden;
  box-shadow: 0 0 12px var(--neon-lime-glow);
  cursor: pointer;
  transition: transform 0.2s ease;
  background: transparent;
  padding: 0;
}
.user-avatar-badge:hover {
  transform: scale(1.08);
}
.avatar-exact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ======================================================== */
/* HERO SECTION                                            */
/* ======================================================== */
.hero-character-section {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(157, 78, 221, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(157, 78, 221, 0.2);
  cursor: pointer;
}
.hero-image-wrapper {
  position: absolute;
  inset: 0;
  background: #0d0f1f;
}
.hero-exact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-overlay-text {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.hero-greeting-kanji {
  font-family: var(--font-brush);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
}
.prep-main-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}
.hero-brush-line {
  width: 55px;
  height: 4px;
  background: var(--neon-lime);
  border-radius: 4px;
  margin: 6px 0 10px 0;
  box-shadow: 0 0 10px var(--neon-lime);
}
.hero-subtext {
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 700;
  color: #e2e8f0;
}
.highlight-green {
  color: var(--neon-lime);
  font-weight: 800;
}

/* ======================================================== */
/* DAILY STEP CARD                                         */
/* ======================================================== */
.daily-step-card {
  position: relative;
  padding: 20px 18px;
  margin-bottom: 18px;
  background: linear-gradient(145deg, #161830, #101224);
  border: 1px solid rgba(182, 255, 0, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(182, 255, 0, 0.08);
}
.step-badge-pill {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--neon-lime);
  color: #080911;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(182, 255, 0, 0.4);
  text-transform: uppercase;
}
.step-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.step-info-col {
  flex: 1;
}
.lesson-num-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--neon-pink);
  margin-bottom: 4px;
}
.step-title {
  font-family: var(--font-jp);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.step-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 700;
}
.progress-bar-track {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-lime));
  border-radius: 10px;
}
.progress-pct {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--neon-lime);
}

.kanji-splash-box {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.kanji-splash-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(182, 255, 0, 0.3));
}

/* Call-to-action brush buttons */
.btn-lime-brush {
  width: 100%;
  background: var(--neon-lime);
  color: #080911;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(182, 255, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-lime-brush:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182, 255, 0, 0.55);
}
.btn-lime-brush:active {
  transform: translateY(1px);
}
.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.btn-lime-brush:hover .btn-arrow {
  transform: translateX(4px);
}

/* ======================================================== */
/* QUICK STATS ROW                                         */
/* ======================================================== */
.stats-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.stat-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stat-mini-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.stat-mini-card:active {
  transform: scale(0.97);
}
.stat-icon-flame, .stat-icon-face {
  font-size: 1.6rem;
}
.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}
.stat-number-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-number-row strong {
  font-size: 1.05rem;
  font-weight: 900;
}
.text-lime {
  color: var(--neon-lime);
}
.text-pink { color: var(--neon-pink); }
.text-blue { color: var(--neon-blue); }
.arrow-mini {
  font-size: 1.1rem;
  color: var(--text-dim);
}
.stat-caption {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ======================================================== */
/* 40-DAY CHALLENGE TIMELINE                               */
/* ======================================================== */
.timeline-challenge-card {
  padding: 16px 18px;
  margin-bottom: 22px;
  background: linear-gradient(145deg, #181533, #111226);
  border: 1px solid rgba(157, 78, 221, 0.35);
  cursor: pointer;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.timeline-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fuji-mini-icon {
  font-size: 1.4rem;
}
.sub-lead {
  font-size: 0.7rem;
  color: var(--neon-purple);
  font-weight: 800;
}
.timeline-title-group h4 {
  font-size: 0.95rem;
  font-weight: 800;
}
.day-counter-badge {
  background: rgba(182, 255, 0, 0.12);
  border: 1px solid rgba(182, 255, 0, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.curr-day {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--neon-lime);
}
.total-days {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.timeline-track-wrapper {
  position: relative;
  padding: 10px 4px 4px 4px;
}
.timeline-line {
  position: absolute;
  top: 20px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  z-index: 1;
}
.timeline-line-active {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-lime));
  border-radius: 4px;
}
.timeline-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.node-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neon-purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.6);
}
.node-dot-pulse {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neon-lime);
  box-shadow: 0 0 14px var(--neon-lime);
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}
.node-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}
.node-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
}
.node-label.highlight {
  color: var(--neon-lime);
  font-weight: 900;
}

/* ======================================================== */
/* PRACTICE CAROUSEL                                       */
/* ======================================================== */
.section-block {
  margin-bottom: 24px;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-title-row h3 {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sparkle-purp {
  color: var(--neon-purple);
}
.see-all-btn {
  background: none;
  border: none;
  color: var(--neon-lime);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.practice-cards-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.practice-cards-carousel::-webkit-scrollbar {
  display: none;
}
.practice-item-card {
  min-width: 125px;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  transition: all 0.2s ease;
}
.practice-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}
.practice-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
}
.bg-purp { background: rgba(157, 78, 221, 0.25); color: var(--neon-purple); border: 1px solid rgba(157, 78, 221, 0.4); }
.bg-blue { background: rgba(56, 189, 248, 0.25); color: var(--neon-blue); border: 1px solid rgba(56, 189, 248, 0.4); }
.bg-orange { background: rgba(251, 146, 60, 0.25); color: var(--neon-orange); border: 1px solid rgba(251, 146, 60, 0.4); }
.bg-cyan { background: rgba(45, 212, 191, 0.25); color: #2dd4bf; border: 1px solid rgba(45, 212, 191, 0.4); }

.pencil-sub {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 0.75rem;
}
.practice-item-card strong {
  font-size: 0.82rem;
  margin-bottom: 2px;
}
.card-desc {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.star-rating {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--neon-lime);
}

/* ======================================================== */
/* SCREEN 2: JOURNEY ROADMAP                               */
/* ======================================================== */
.journey-header-block {
  padding-bottom: 12px;
}
.journey-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.kanji-huge-brush {
  font-family: var(--font-brush);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}
.journey-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}
.journey-mascot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 18px;
}
.speech-bubble-neon {
  flex: 1;
  background: rgba(182, 255, 0, 0.12);
  border: 1px solid rgba(182, 255, 0, 0.35);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--neon-lime);
}
.mascot-mini-hero {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--neon-lime);
  overflow: hidden;
  box-shadow: 0 0 14px var(--neon-lime-glow);
}

.roadmap-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.vertical-connector-line {
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 21px;
  width: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.roadmap-step-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.roadmap-step-card:hover {
  transform: translateX(4px);
}
.step-number-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--neon-purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.4);
}
.step-num {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--neon-purple);
}
.step-icon-circle {
  font-size: 0.85rem;
}
.active-lime-bubble {
  background: var(--neon-lime);
  border-color: var(--neon-lime);
  box-shadow: 0 0 18px var(--neon-lime-glow);
}
.step-current-number {
  font-size: 1.1rem;
  font-weight: 900;
  color: #080911;
}

.step-details-box {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 12px 14px;
}
.glowing-border {
  border-color: var(--neon-lime);
  box-shadow: 0 0 16px rgba(182, 255, 0, 0.25);
  background: linear-gradient(145deg, #181c33, #121426);
}
.step-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.step-top-row h4 {
  font-size: 0.95rem;
  font-weight: 800;
}
.badge-cleared {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(182, 255, 0, 0.15);
  color: var(--neon-lime);
  padding: 2px 8px;
  border-radius: 10px;
}
.badge-almost {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(251, 146, 60, 0.15);
  color: var(--neon-orange);
  padding: 2px 8px;
  border-radius: 10px;
}
.step-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.step-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.step-bar-fill.green-100 {
  background: var(--neon-lime);
}
.step-bar-fill.green-85 {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-lime));
}
.step-bar-fill.green-65 {
  background: var(--neon-lime);
}
.pct-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
}

.here-now-pointer {
  position: absolute;
  left: -55px;
  top: 0;
  background: var(--neon-lime);
  color: #080911;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 6px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 0 10px var(--neon-lime);
}
.curved-arrow {
  font-size: 0.8rem;
}

.journey-summary-footer {
  display: flex;
  justify-content: space-around;
  padding: 14px 10px;
}
.sum-col {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trophy-icon, .flame-icon, .smile-icon {
  font-size: 1.4rem;
}
.sum-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
}
.sum-col strong {
  font-size: 0.85rem;
}
.sub-val {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ======================================================== */
/* SCREEN 3: INTERACTIVE LESSON                            */
/* ======================================================== */
.lesson-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.btn-back-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.lesson-header-title {
  font-size: 1.1rem;
  font-weight: 800;
}
.lesson-streak-pill {
  background: rgba(255, 92, 138, 0.15);
  border: 1px solid rgba(255, 92, 138, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--neon-pink);
}
.lesson-stepper-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.lesson-stepper-dots .dot {
  width: 24px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
.lesson-stepper-dots .dot.active {
  background: var(--neon-lime);
  width: 38px;
  box-shadow: 0 0 10px var(--neon-lime);
}

.lesson-hero-banner {
  position: relative;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #181938, #101124);
  border: 1px solid rgba(182, 255, 0, 0.25);
}
.banner-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--neon-pink);
  margin-bottom: 4px;
}
.banner-content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.banner-title-brush {
  font-family: var(--font-brush);
  font-size: 1.8rem;
  font-weight: 900;
}
.brush-lime-under {
  width: 45px;
  height: 3px;
  background: var(--neon-lime);
  border-radius: 3px;
  margin: 4px 0 6px 0;
}
.banner-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.banner-mascot-peace {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--neon-lime);
  overflow: hidden;
  box-shadow: 0 0 12px var(--neon-lime-glow);
}

.vocab-main-card {
  padding: 20px 18px;
  margin-bottom: 20px;
  background: #111326;
  border: 1px solid rgba(157, 78, 221, 0.3);
}
.vocab-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.vocab-badge-tag {
  background: rgba(157, 78, 221, 0.2);
  color: var(--neon-purple);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.big-hiragana-display {
  text-align: center;
  padding: 14px 0 18px 0;
}
.calligraphy-text {
  font-family: var(--font-brush);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 20px rgba(182, 255, 0, 0.35);
  margin-bottom: 6px;
}
.romaji-audio-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.romaji-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--neon-lime);
}
.audio-speaker-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(182, 255, 0, 0.15);
  border: 1px solid rgba(182, 255, 0, 0.4);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(182, 255, 0, 0.3);
  transition: transform 0.15s ease;
}
.audio-speaker-btn:hover {
  transform: scale(1.15);
}
.meaning-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 700;
}

.usage-dialogue-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.usage-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--neon-lime);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}
.dialogue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.speaker-tag {
  font-size: 0.8rem;
  color: var(--neon-pink);
}
.bubble-phrase {
  background: rgba(20, 22, 42, 0.8);
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.phrase-jp {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  font-weight: 800;
}
.phrase-rom {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.doodle-friends-greeting {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-top: 6px;
  opacity: 0.85;
}

.lesson-tip-box {
  background: rgba(157, 78, 221, 0.12);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.tip-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--neon-purple);
  margin-bottom: 4px;
}
.tip-text {
  font-size: 0.8rem;
  line-height: 1.35;
}
.tip-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ======================================================== */
/* SCREEN 4: PERSIAPAN JEPANG                              */
/* ======================================================== */
.readiness-gauge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #181938, #101224);
  border: 1px solid rgba(182, 255, 0, 0.3);
}
.gauge-meter-wrapper {
  width: 80px;
  height: 80px;
  position: relative;
  flex-shrink: 0;
}
.circular-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3.8;
}
.circle-fill {
  fill: none;
  stroke: var(--neon-lime);
  stroke-width: 3.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--neon-lime));
}
.gauge-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.score-denom {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.gauge-info-content {
  flex: 1;
}
.gauge-category {
  font-size: 0.68rem;
  color: var(--neon-purple);
  font-weight: 800;
}
.gauge-status-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--neon-lime);
  margin-bottom: 2px;
}
.gauge-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 8px;
}
.btn-lime-small {
  background: var(--neon-lime);
  color: #080911;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(182, 255, 0, 0.35);
}

.skills-grid-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.skill-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.skill-card-item:hover {
  background: var(--bg-card-hover);
  transform: translateX(3px);
}
.skill-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.icon-purple { background: rgba(157, 78, 221, 0.2); }
.icon-pink { background: rgba(255, 92, 138, 0.2); }
.icon-orange { background: rgba(251, 146, 60, 0.2); }
.icon-blue { background: rgba(56, 189, 248, 0.2); }
.icon-green { background: rgba(182, 255, 0, 0.2); }

.skill-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.skill-info strong {
  font-size: 0.85rem;
}
.skill-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.skill-gauge-pct {
  font-size: 0.8rem;
  font-weight: 800;
}
.pct-green { color: var(--neon-lime); }
.pct-pink { color: var(--neon-pink); }
.pct-orange { color: var(--neon-orange); }
.pct-blue { color: var(--neon-blue); }
.chevron-right {
  font-size: 1.1rem;
  color: var(--text-dim);
}

.mission-cards-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin-bottom: 18px;
}
.mission-cards-carousel::-webkit-scrollbar { display: none; }
.mission-item {
  min-width: 120px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 12px 10px;
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mission-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}
.mission-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.mission-item strong {
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.mission-meta {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.mission-foot {
  display: flex;
  align-items: center;
  gap: 4px;
}
.xp-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(182, 255, 0, 0.15);
  color: var(--neon-lime);
  padding: 2px 6px;
  border-radius: 8px;
}
.check-circle-green {
  color: var(--neon-lime);
  font-weight: 900;
}

.motivation-banner-lime {
  background: linear-gradient(135deg, rgba(182, 255, 0, 0.15), rgba(157, 78, 221, 0.15));
  border: 1px solid rgba(182, 255, 0, 0.35);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.banner-mascot-cheer {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--neon-lime);
  overflow: hidden;
  flex-shrink: 0;
}
.cheer-text-col {
  flex: 1;
}
.cheer-text-col strong {
  font-size: 0.88rem;
  color: var(--neon-lime);
  display: block;
}
.cheer-text-col p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.btn-notes-round {
  background: var(--neon-lime);
  color: #080911;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ======================================================== */
/* SCREEN 5: PROFILE & SETTINGS                            */
/* ======================================================== */
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.profile-avatar-large {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--neon-lime);
  box-shadow: 0 0 16px var(--neon-lime-glow);
}
.online-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-lime);
  border: 2px solid var(--bg-deep);
}
.profile-text-info h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.profile-status-tag {
  font-size: 0.78rem;
  color: var(--neon-pink);
  font-weight: 800;
  margin-bottom: 2px;
}
.profile-email-text {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.profile-stat-box {
  padding: 12px 8px;
  text-align: center;
}
.pstat-val {
  font-size: 1.1rem;
  font-weight: 900;
  display: block;
  margin-bottom: 2px;
}
.pstat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.profile-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-menu-item {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.profile-menu-item:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.pmenu-icon {
  font-size: 1.3rem;
}
.pmenu-text {
  flex: 1;
}
.pmenu-text strong {
  display: block;
  font-size: 0.85rem;
}
.pmenu-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ======================================================== */
/* ROUNDED FLOATING NAVIGATION DOCK (Smooth Glass Shadow)   */
/* ======================================================== */
.floating-nav-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(16, 18, 34, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-dock);
  padding: 8px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(182, 255, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 9999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-tab-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-tab-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.dock-tab-btn:active {
  transform: scale(0.92);
}

.dock-tab-btn.active {
  color: var(--neon-lime);
  background: rgba(182, 255, 0, 0.12);
}

.dock-tab-btn.active .dock-icon {
  transform: scale(1.18);
  filter: drop-shadow(0 0 8px var(--neon-lime));
}

.dock-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* Center Highlighted Journey Tab */
.dock-tab-btn.main-journey-tab {
  position: relative;
}
.dock-journey-glow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-lime));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: 0 4px 16px rgba(182, 255, 0, 0.45);
  border: 3px solid var(--bg-deep);
  transition: transform 0.2s ease;
}
.dock-tab-btn.main-journey-tab:hover .dock-journey-glow {
  transform: scale(1.12);
}
.dock-tab-btn.main-journey-tab .dock-label.highlight {
  color: var(--neon-lime);
  font-weight: 900;
  margin-top: 2px;
}

/* ======================================================== */
/* TOAST ALERTS & MODALS                                   */
/* ======================================================== */
.app-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(20, 22, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--neon-lime);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(182, 255, 0, 0.3);
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 90%;
}
.app-toast.show {
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-backdrop.show {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  background: #141629;
  border: 1px solid var(--neon-lime);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(182, 255, 0, 0.2);
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.close-modal-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-body {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
}
