@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,700;6..96,900&family=Playfair+Display:wght@700;900&family=Montserrat:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #060915;
  --bg-primary: #0A1024;
  --bg-card: rgba(12, 20, 45, 0.55);
  --bg-elevated: #0E1B3A;
  --border: rgba(86, 214, 255, 0.12);
  --border-glow: rgba(86, 214, 255, 0.35);
  --cyan: #56D6FF;
  --cyan-dim: #2A7CFF;
  --cyan-glow: rgba(86, 214, 255, 0.15);
  --cyan-glow-strong: rgba(86, 214, 255, 0.3);
  --text-primary: #F2F5FF;
  --text-secondary: #A9B4D0;
  --text-muted: #5a6a8a;
  --white: #F2F5FF;
  --accent-purple: #7c4dff;
  --accent-pink: #e040fb;
  --font-display: 'Bodoni Moda', 'Playfair Display', 'DM Serif Display', Georgia, serif;
  --font-body: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --card-bg: rgba(12, 20, 45, 0.55);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glass-border: rgba(86, 214, 255, 0.18);
}

/* ── Light Theme ───────────────────────────────────────── */
body.theme-lite {
  --bg-deep: #eef2ff;
  --bg-primary: #e4eaff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-elevated: #ffffff;
  --border: rgba(80, 130, 255, 0.18);
  --border-glow: rgba(80, 130, 255, 0.45);
  --cyan: #0055e5;
  --cyan-dim: #0040bb;
  --cyan-glow: rgba(0, 85, 229, 0.12);
  --cyan-glow-strong: rgba(0, 85, 229, 0.25);
  --text-primary: #0c1640;
  --text-secondary: #3a4e7a;
  --text-muted: #7a8eb8;
  --white: #0c1640;
  --accent-purple: #5b2de0;
  --accent-pink: #c020d0;
  --shadow-soft: 0 8px 32px rgba(0, 50, 180, 0.1);
  --glass-border: rgba(80, 130, 255, 0.22);
  background: #eef2ff;
  background-image:
    radial-gradient(ellipse at 50% 20%, rgba(180, 210, 255, 0.5) 0%, transparent 65%),
    radial-gradient(circle at 80% 80%, rgba(120, 160, 255, 0.1) 0%, transparent 50%);
  color: #0c1640;
}
body.theme-lite::before { opacity: 0.008; }
body.theme-lite header {
  background: rgba(240, 245, 255, 0.92);
  border-bottom-color: rgba(80, 130, 255, 0.18);
}
body.theme-lite .header-text h1 { color: #0c1640; }
body.theme-lite .header-tagline { color: #3a4e7a; }
body.theme-lite .trust-bar {
  background: rgba(220, 230, 255, 0.6);
  border-color: rgba(80, 130, 255, 0.18);
  color: #3a4e7a;
}
body.theme-lite .home-btn-create {
  background: rgba(210, 225, 255, 0.7);
  border-color: rgba(0, 85, 229, 0.4);
  color: #0c1640;
  box-shadow: 0 4px 24px rgba(0, 85, 229, 0.1);
}
body.theme-lite .home-btn-career {
  background: rgba(215, 210, 255, 0.65);
  border-color: rgba(91, 45, 224, 0.38);
  color: #0c1640;
  box-shadow: 0 4px 24px rgba(91, 45, 224, 0.08);
}
body.theme-lite .home-btn-secondary {
  background: rgba(220, 230, 255, 0.45);
  border-color: rgba(80, 130, 255, 0.2);
  color: #3a4e7a;
}
body.theme-lite .neoportal-card {
  background: rgba(210, 225, 255, 0.6);
  border-color: rgba(0, 85, 229, 0.38);
}
body.theme-lite .neoportal-title { color: #0c1640; }
body.theme-lite .neoportal-badge { color: #0a2ecc; border-color: rgba(17, 65, 240, 0.45); background: rgba(17, 65, 240, 0.08); }
body.theme-lite .home-title { color: #0c1640; }
body.theme-lite .home-slogan { color: #3a4e7a; }
body.theme-lite .card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(80, 130, 255, 0.2);
}
body.theme-lite .card h2 { color: #0c1640; }
body.theme-lite label { color: #3a4e7a; }
body.theme-lite .smart-input, body.theme-lite .free-input, body.theme-lite .select-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(80, 130, 255, 0.25);
  color: #0c1640;
}
body.theme-lite .back-btn { color: #3a4e7a; border-color: rgba(80, 130, 255, 0.22); }
body.theme-lite .pomo-header { border-color: rgba(80, 130, 255, 0.2); }
body.theme-lite .pomo-header-title, body.theme-lite .pomo-timer-display { color: #0c1640; }
body.theme-lite .pomo-header-sub { color: #3a4e7a; }
body.theme-lite .neoagent-fab { border-color: rgba(0, 85, 229, 0.25); }
body.theme-lite .gen-progress-widget { background: rgba(210, 225, 255, 0.5); border-color: rgba(80, 130, 255, 0.2); }

/* ── Light mode: select fields ───────────────────────── */
body.theme-lite select {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(80, 130, 255, 0.28);
  color: #0c1640;
}
body.theme-lite select:focus {
  border-color: #0055e5;
  box-shadow: 0 0 12px rgba(0, 85, 229, 0.12);
}

/* ── Light mode: role status toggle ─────────────────── */
body.theme-lite .role-toggle {
  border-color: rgba(80, 130, 255, 0.25);
  background: rgba(255, 255, 255, 0.6);
}
body.theme-lite .toggle-btn {
  background: rgba(240, 244, 255, 0.85);
  color: #3a4e7a;
}
body.theme-lite .toggle-btn:hover {
  background: rgba(220, 230, 255, 0.9);
  color: #0c1640;
}
body.theme-lite .toggle-btn.active {
  background: linear-gradient(135deg, #3a7cff, #0055e5);
  color: #ffffff;
}

/* ── Light mode: focus chips ────────────────────────── */
body.theme-lite .chip {
  background: rgba(230, 237, 255, 0.85);
  border-color: rgba(80, 130, 255, 0.22);
  color: #3a4e7a;
}
body.theme-lite .chip:hover {
  background: rgba(200, 218, 255, 0.9);
  color: #0c1640;
}
body.theme-lite .chip.active {
  background: rgba(0, 85, 229, 0.12);
  color: #0055e5;
  border-color: #0055e5;
  box-shadow: 0 0 10px rgba(0, 85, 229, 0.1);
}

/* ── Theme Toggle Button ──────────────────────────────── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  border: 1px solid rgba(86, 214, 255, 0.28);
  background: rgba(86, 214, 255, 0.06);
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  border-color: var(--cyan);
  background: rgba(86, 214, 255, 0.12);
}
.theme-toggle-icon { font-size: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.theme-img-icon { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 4px rgba(0,0,0,0.25); }

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(14, 27, 58, 0.6) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(42, 124, 255, 0.03) 0%, transparent 60%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hidden { display: none !important; }

#intro-splash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #030610;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#intro-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}
#intro-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.intro-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.intro-logo {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(86, 214, 255, 0.4));
  box-shadow: 0 0 60px rgba(86, 214, 255, 0.15);
}
.intro-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(86, 214, 255, 0.35);
  margin-bottom: 0.6rem;
}
.intro-slogan {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(86, 214, 255, 0.25);
  letter-spacing: 1px;
}
.intro-slogan-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  letter-spacing: 0.5px;
}
.intro-tap-btn {
  margin-top: 2.5rem;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 1px solid rgba(86, 214, 255, 0.4);
  color: var(--cyan);
  border-radius: 40px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 1px;
  animation: pulse-border 2.5s ease-in-out infinite;
  transition: all 0.4s ease;
}
.intro-tap-btn:hover {
  background: rgba(86, 214, 255, 0.08);
  border-color: var(--cyan);
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 8px rgba(86, 214, 255, 0.1); }
  50% { box-shadow: 0 0 25px rgba(86, 214, 255, 0.25); }
}

.transition-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 8888;
  background: #030610;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.transition-overlay video {
  width: 100%; height: 100%;
  object-fit: cover;
}

header {
  background: rgba(6, 9, 21, 0.85);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(86, 214, 255, 0.25));
}
.header-text h1 {
  font-family: 'Manrope', var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.header-tagline {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

main {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}
.trust-bar span { white-space: nowrap; }
.trust-sep { color: rgba(86, 214, 255, 0.2); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(86, 214, 255, 0.25) 50%, transparent 95%);
}
.card h2 {
  color: var(--cyan);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.card h3 { color: var(--text-secondary); margin: 1rem 0 0.5rem; font-weight: 500; }
.card h4 { color: var(--text-primary); margin: 0.5rem 0; font-weight: 600; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
select, input, textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(6, 9, 21, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(86, 214, 255, 0.12);
}

button {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}
button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(86, 214, 255, 0.2);
}
button:active { transform: translateY(0); }
button:disabled { opacity: 0.25; cursor: not-allowed; transform: none; box-shadow: none; }

.combo-field {
  position: relative;
  display: flex;
  align-items: center;
}
.combo-input {
  cursor: pointer;
  padding-right: 2.5rem;
}
.smart-input-wrap {
  position: relative;
}
.smart-input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(6, 9, 21, 0.7);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.smart-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(86, 214, 255, 0.12);
}
.smart-input-wrap .combo-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.smart-dropdown {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(10, 16, 36, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 50;
  backdrop-filter: blur(16px);
}
.smart-dropdown .dd-item {
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(86, 214, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}
.smart-dropdown .dd-item:last-child { border-bottom: none; }
.smart-dropdown .dd-item:hover,
.smart-dropdown .dd-item.active {
  background: rgba(86, 214, 255, 0.08);
}
.smart-dropdown .dd-item .dd-cat {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
  white-space: nowrap;
}
.smart-dropdown .dd-hint {
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  color: var(--cyan);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.combo-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(86, 214, 255, 0.1);
  color: var(--text-primary);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.combo-clear:hover { background: var(--cyan); color: var(--bg-deep); }

.free-input {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--glass-border);
  background: rgba(6, 9, 21, 0.5);
  border-style: solid;
}

.row-2 {
  display: flex;
  gap: 1rem;
}
.row-2 .form-group { flex: 1; min-width: 0; }

.cta-button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  border-radius: 14px;
  margin-top: 0.5rem;
  color: var(--bg-deep);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(42, 124, 255, 0.2);
  transition: all 0.4s ease;
}
.cta-button:hover:not(:disabled) {
  box-shadow: 0 6px 30px rgba(86, 214, 255, 0.3);
  transform: translateY(-2px);
}

.role-toggle {
  display: flex;
  gap: 0;
  margin-top: 0.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.toggle-btn {
  flex: 1;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  background: rgba(6, 9, 21, 0.6);
  color: var(--text-secondary);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}
.toggle-btn:hover { background: var(--bg-elevated); }
.toggle-btn.active {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  font-weight: 700;
}

.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(14, 27, 58, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
  user-select: none;
}
.chip:hover { background: rgba(86, 214, 255, 0.08); color: var(--text-primary); }
.chip.active {
  background: rgba(86, 214, 255, 0.15);
  color: var(--cyan);
  border-color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(86, 214, 255, 0.12);
}

.plan-loader {
  text-align: center;
  padding: 2rem;
}
.plan-loader .spinner { margin: 0 auto 1rem; }
.plan-loader p { color: var(--text-secondary); font-size: 1rem; }

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(86, 214, 255, 0.05) 0%, rgba(42, 124, 255, 0.02) 40%, transparent 70%);
  pointer-events: none;
}
.home-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(86, 214, 255, 0.3));
  box-shadow: 0 0 50px rgba(86, 214, 255, 0.1);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.home-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(86, 214, 255, 0.2);
}
.home-slogan {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}
.home-slogan-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}
.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 520px;
}
.home-btn {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.5rem;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s ease;
  text-align: left;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.home-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.6s ease;
}
.home-btn:hover::before { left: 100%; }
.home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.home-btn:active { transform: translateY(0); }
.home-btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-btn-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 12px rgba(86, 214, 255, 0.35));
}
.home-btn-text { flex: 1; }
.home-btn-create {
  background: rgba(14, 27, 58, 0.45);
  color: var(--white);
  border-color: rgba(86, 214, 255, 0.35);
  box-shadow: 0 4px 28px rgba(86, 214, 255, 0.08), inset 0 1px 0 rgba(86, 214, 255, 0.08), inset 0 0 40px rgba(86, 214, 255, 0.03);
  backdrop-filter: blur(18px);
}
.home-btn-create:hover {
  border-color: rgba(86, 214, 255, 0.65);
  box-shadow: 0 8px 40px rgba(86, 214, 255, 0.18), inset 0 0 60px rgba(86, 214, 255, 0.05);
  background: rgba(14, 27, 58, 0.55);
}
.home-btn-career {
  background: rgba(18, 14, 48, 0.45);
  color: var(--white);
  border-color: rgba(160, 120, 255, 0.32);
  box-shadow: 0 4px 28px rgba(160, 120, 255, 0.07), inset 0 1px 0 rgba(160, 120, 255, 0.08), inset 0 0 40px rgba(160, 120, 255, 0.03);
  backdrop-filter: blur(18px);
}
.home-btn-career:hover {
  border-color: rgba(160, 120, 255, 0.65);
  box-shadow: 0 8px 40px rgba(160, 120, 255, 0.16), inset 0 0 60px rgba(160, 120, 255, 0.05);
  background: rgba(18, 14, 48, 0.58);
}
.home-btn-secondary {
  width: 100%;
  max-width: 520px;
  margin: 0.8rem auto 0;
  background: rgba(10, 18, 40, 0.3);
  color: var(--text-secondary);
  border-color: rgba(86, 214, 255, 0.12);
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.home-btn-secondary:hover {
  border-color: rgba(86, 214, 255, 0.26);
  box-shadow: 0 3px 16px rgba(86, 214, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  background: rgba(10, 18, 40, 0.42);
}
.home-btn-secondary .home-btn-img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 4px rgba(86, 214, 255, 0.1));
}

.neoportal-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  margin: 1rem auto 0;
  padding: 1.15rem 1.5rem 1rem;
  background: rgba(14, 27, 58, 0.45);
  border: 1px solid rgba(86, 214, 255, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 24px rgba(86, 214, 255, 0.1), inset 0 1px 0 rgba(86, 214, 255, 0.06);
  backdrop-filter: blur(18px);
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.neoportal-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.6s ease;
}
.neoportal-card:hover::before { left: 100%; }
.neoportal-card:hover {
  border-color: rgba(86, 214, 255, 0.7);
  box-shadow: 0 8px 40px rgba(86, 214, 255, 0.2);
  transform: translateY(-3px);
}
.neoportal-card-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.neoportal-logo-lg {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 12px rgba(86, 214, 255, 0.4));
  flex-shrink: 0;
}
.neoportal-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
  flex: 1;
  text-align: left;
}
.neoportal-desc {
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0.7;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
  max-width: 160px;
  flex-shrink: 0;
  margin-left: 60px;
  margin-right: 60px;
}
.neoportal-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.neoportal-card-icon { color: var(--cyan); flex-shrink: 0; }
.neoportal-card-logo { border-radius: 0 !important; filter: drop-shadow(0 0 12px rgba(86, 214, 255, 0.35)); }
.neoportal-card-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.neoportal-card-title { color: var(--white); font-size: 1.05rem; font-weight: 600; }
.neoportal-card-sub { color: var(--text-secondary); font-size: 0.78rem; opacity: 0.75; }
.neoportal-badge-wrap {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.neoportal-badge {
  display: inline-block;
  background: rgba(17, 65, 240, 0.08);
  color: #1141f0;
  border: 1px solid rgba(17, 65, 240, 0.4);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  padding: 5px 39px;
  margin: -14px 131px;
  text-shadow: 0 0 10px rgba(17, 65, 240, 0.5);
  animation: badge-glow-pulse 3s ease-in-out infinite;
}
@keyframes badge-glow-pulse {
  0% {
    transform: translateY(0px);
    box-shadow: 0 0 8px rgba(17, 65, 240, 0.12), inset 0 0 6px rgba(17, 65, 240, 0.04);
    border-color: rgba(17, 65, 240, 0.32);
    opacity: 0.88;
  }
  30% {
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(17, 65, 240, 0.28), 0 0 32px rgba(17, 65, 240, 0.14), inset 0 0 12px rgba(17, 65, 240, 0.06);
    border-color: rgba(17, 65, 240, 0.6);
    opacity: 1;
  }
  60% {
    transform: translateY(-1.5px);
    box-shadow: 0 2px 12px rgba(17, 65, 240, 0.18), inset 0 0 8px rgba(17, 65, 240, 0.04);
    border-color: rgba(17, 65, 240, 0.44);
    opacity: 0.95;
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 0 8px rgba(17, 65, 240, 0.12), inset 0 0 6px rgba(17, 65, 240, 0.04);
    border-color: rgba(17, 65, 240, 0.32);
    opacity: 0.88;
  }
}
.neoportal-badge {
  animation: badge-glow-pulse 4.5s ease-in-out infinite;
}
.neoportal-badge-wrap {
  position: relative;
  overflow: visible;
}
.neoportal-badge-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: badge-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badge-shimmer {
  0%, 100% { background-position: -100% 0; opacity: 0; }
  40%, 60% { background-position: 100% 0; opacity: 1; }
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background: rgba(86, 214, 255, 0.06);
  color: var(--cyan);
  border-color: rgba(86, 214, 255, 0.3);
}

.route-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.module-card {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: rgba(10, 16, 36, 0.5);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  animation: fadeSlideIn 0.4s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
  opacity: 0;
}
.module-card:hover {
  background: rgba(14, 27, 58, 0.6);
  border-color: rgba(86, 214, 255, 0.25);
  box-shadow: 0 0 20px rgba(86, 214, 255, 0.05);
}
.module-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.module-num {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(86, 214, 255, 0.15);
}
.module-info { flex: 1; min-width: 0; }
.module-title {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}
.module-duration {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.module-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}
.module-deliverable,
.module-tools,
.module-depends {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 0.4rem;
  line-height: 1.4;
}
.module-deliverable strong,
.module-tools strong,
.module-depends strong {
  color: var(--text-primary);
}

.module-steps-preview {
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--glass-border);
}
.module-step-preview-item {
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.module-step-preview-more {
  color: var(--accent);
  font-size: 0.78rem;
  padding: 0.25rem 0 0 28px;
  cursor: pointer;
}
.tool-chip {
  display: inline-block;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  margin: 2px;
  transition: background 0.2s;
}
.tool-chip:hover {
  background: rgba(0,229,255,0.2);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  transition: background 0.3s ease;
}
.step-item:hover { background: rgba(14, 27, 58, 0.4); }
.step-num {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.step-title { flex: 1; }
.step-item button {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  flex-shrink: 0;
}

.badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(86, 214, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(86, 214, 255, 0.1);
}
.badge.high { background: rgba(233, 69, 96, 0.15); color: #ff6b82; border-color: rgba(233, 69, 96, 0.3); }
.badge.medium { background: rgba(233, 165, 69, 0.15); color: #f0b560; border-color: rgba(233, 165, 69, 0.3); }
.badge.low { background: rgba(86, 214, 255, 0.1); color: var(--cyan); border-color: rgba(86, 214, 255, 0.2); }
.badge.template-badge { background: rgba(86, 214, 255, 0.06); color: var(--text-secondary); }

.kpi-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(86, 214, 255, 0.08);
  font-size: 0.9rem;
  color: var(--text-primary);
}
.kpi-item:last-child { border-bottom: none; }

footer {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(86, 214, 255, 0.08);
  letter-spacing: 0.3px;
}

.view { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 9, 21, 0.85);
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.overlay-sheet {
  background: rgba(10, 16, 36, 0.95);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.35s ease-out;
  border: 1px solid var(--glass-border);
  border-bottom: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(86, 214, 255, 0.1);
}
.overlay-header h3 { color: var(--cyan); font-size: 1.05rem; margin: 0; font-weight: 600; }
.overlay-close {
  background: rgba(14, 27, 58, 0.6);
  color: var(--text-primary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease;
}
.overlay-close:hover { background: rgba(86, 214, 255, 0.1); border-color: var(--cyan); }

.overlay-search {
  margin: 0.8rem 1.2rem;
  width: calc(100% - 2.4rem);
}

.chips-scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0 1.2rem 0.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 214, 255, 0.15) transparent;
  flex-wrap: nowrap;
}
.chips-scroll::-webkit-scrollbar { height: 3px; }
.chips-scroll::-webkit-scrollbar-track { background: transparent; }
.chips-scroll::-webkit-scrollbar-thumb { background: rgba(86, 214, 255, 0.15); border-radius: 2px; }

.overlay-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 214, 255, 0.12) rgba(10, 16, 36, 0.5);
}
.overlay-list::-webkit-scrollbar { width: 5px; }
.overlay-list::-webkit-scrollbar-track { background: rgba(10, 16, 36, 0.5); }
.overlay-list::-webkit-scrollbar-thumb { background: rgba(86, 214, 255, 0.15); border-radius: 3px; }

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgba(86, 214, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease;
}
.option-item:hover { background: rgba(14, 27, 58, 0.4); }
.option-item.selected { background: rgba(86, 214, 255, 0.06); border-left: 3px solid var(--cyan); }
.option-title { flex: 1; font-size: 0.9rem; }
.option-cat { font-size: 0.72rem; color: var(--text-muted); margin-left: 0.5rem; white-space: nowrap; }

.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 9, 21, 0.85);
  z-index: 950;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.drawer-sheet {
  background: rgba(10, 16, 36, 0.95);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.35s ease-out;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(86, 214, 255, 0.1);
}
.drawer-header h3 { color: var(--cyan); font-size: 1.05rem; margin: 0; font-weight: 600; }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 214, 255, 0.12) rgba(10, 16, 36, 0.5);
}

.detail-block { margin-bottom: 1.2rem; }
.detail-block h4 {
  color: var(--cyan);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.detail-block p {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.detail-block ul { padding-left: 1.2rem; margin: 0; }
.detail-block li { margin: 0.3rem 0; font-size: 0.9rem; color: var(--text-primary); }
.detail-checklist { display: flex; flex-direction: column; gap: 0.4rem; }
.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.check-item input[type="checkbox"] {
  width: auto;
  accent-color: var(--cyan);
  cursor: pointer;
}

.mm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(86, 214, 255, 0.1);
}
.mm-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(14, 27, 58, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.mm-badge-time {
  background: rgba(86, 214, 255, 0.08);
  border-color: rgba(86, 214, 255, 0.3);
  color: var(--cyan);
}
.mm-badge-level {
  background: rgba(124, 77, 255, 0.1);
  border-color: rgba(124, 77, 255, 0.3);
  color: var(--accent-purple);
}
.mm-tool-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}
.mm-verified {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}
.mm-evidence-links {
  margin-bottom: 1rem;
}
.mm-evidence-links a {
  color: var(--cyan);
  font-size: 0.8rem;
  text-decoration: underline;
  margin-right: 0.5rem;
  opacity: 0.8;
}
.mm-evidence-links a:hover { opacity: 1; }

.mm-step {
  background: rgba(14, 27, 58, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.mm-step-header strong {
  font-size: 1rem;
  color: var(--cyan);
}
.mm-substeps {
  margin: 0.5rem 0;
}
.mm-substeps ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
}
.mm-substeps li {
  margin-bottom: 0.3rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}
.mm-click-block, .mm-paste-block {
  background: rgba(86, 214, 255, 0.04);
  border-left: 3px solid rgba(86, 214, 255, 0.4);
  padding: 0.5rem 0.8rem;
  margin: 0.5rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.mm-paste-block code {
  display: block;
  margin-top: 0.3rem;
  background: rgba(6, 9, 21, 0.6);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.mm-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cyan);
  opacity: 0.8;
}
.mm-checklist {
  margin: 0.5rem 0;
}
.mm-checklist .detail-checklist {
  margin-top: 0.3rem;
}
.mm-mistakes {
  margin: 0.5rem 0;
  background: rgba(255, 80, 80, 0.04);
  border-left: 3px solid rgba(255, 80, 80, 0.4);
  padding: 0.5rem 0.8rem;
  border-radius: 0 8px 8px 0;
}
.mm-mistakes ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin: 0.3rem 0 0;
}
.mm-mistakes li {
  color: #ffb0b0;
  font-size: 0.85rem;
}

.mm-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(86, 214, 255, 0.08);
}
.mm-action-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  font-family: var(--font-body);
}
.mm-btn-generate {
  background: rgba(86, 214, 255, 0.06);
  color: var(--cyan);
  border-color: rgba(86, 214, 255, 0.3);
}
.mm-btn-generate:hover { background: rgba(86, 214, 255, 0.12); }
.mm-btn-check {
  background: rgba(124, 77, 255, 0.06);
  color: var(--accent-purple);
  border-color: rgba(124, 77, 255, 0.3);
}
.mm-btn-check:hover { background: rgba(124, 77, 255, 0.12); }
.mm-btn-fix {
  background: rgba(255, 80, 80, 0.06);
  color: #ff8080;
  border-color: rgba(255, 80, 80, 0.3);
}
.mm-btn-fix:hover { background: rgba(255, 80, 80, 0.12); }

.mm-accordion { margin-bottom: 0.5rem; }
.mm-accordion-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}
.mm-accordion-header:hover { color: var(--cyan); }
.acc-arrow { font-size: 0.9rem; color: var(--text-muted); transition: transform 0.3s ease; }
.mm-accordion-body { padding: 0.5rem 0; }

.mm-prompt-card {
  background: rgba(14, 27, 58, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.8rem;
  margin-bottom: 0.5rem;
}
.mm-prompt-pre {
  background: rgba(6, 9, 21, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
  margin: 0.5rem 0;
  max-height: 200px;
  overflow-y: auto;
}
.mm-negative {
  color: #ff8080;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}
.mm-vars {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.mm-cause {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0.3rem 0;
}
.mm-fallback {
  background: rgba(6, 9, 21, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}
.mm-fallback code {
  display: block;
  margin: 0.3rem 0;
  color: var(--text-primary);
}
.mm-copy-btn {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(86, 214, 255, 0.3);
  background: rgba(86, 214, 255, 0.06);
  color: var(--cyan);
  cursor: pointer;
  font-weight: 600;
  margin-top: 0.3rem;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.mm-copy-btn:hover { background: rgba(86, 214, 255, 0.15); }
.mm-done-def {
  background: rgba(14, 27, 58, 0.4);
  padding: 0.6rem;
  border-radius: 8px;
  border-left: 3px solid rgba(86, 214, 255, 0.4);
  margin-bottom: 0.5rem;
}
.mm-examples-label { margin-top: 0.5rem; }
.mm-insertion {
  margin-top: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: rgba(86, 214, 255, 0.04);
  border-left: 3px solid rgba(86, 214, 255, 0.4);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
}
.mm-revised-step {
  background: rgba(14, 27, 58, 0.4);
  padding: 0.6rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  border: 1px solid var(--glass-border);
}
.troubleshoot {
  background: rgba(14, 27, 58, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.7rem;
  margin-bottom: 0.5rem;
}
.troubleshoot ol {
  padding-left: 1.3rem;
  margin: 0.3rem 0 0;
}

.mm-modal-panel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1100;
  background: rgba(6, 9, 21, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(8px);
}
.mm-modal-sheet {
  background: rgba(10, 16, 36, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(86, 214, 255, 0.08);
  backdrop-filter: blur(20px);
}
.mm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(86, 214, 255, 0.1);
}
.mm-modal-header h3 {
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 600;
}
.mm-modal-body {
  padding: 1rem 1.2rem;
}
.mm-modal-result {
  margin-top: 1rem;
}
.pb-generated h4, .fix-output h4 {
  color: var(--cyan);
  margin: 0.8rem 0 0.4rem;
  font-size: 0.95rem;
}
.rc-verdict {
  padding: 0.8rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}
.rc-pass {
  background: rgba(0, 200, 83, 0.06);
  border: 1px solid rgba(0, 200, 83, 0.2);
}
.rc-fail {
  background: rgba(255, 80, 80, 0.06);
  border: 1px solid rgba(255, 80, 80, 0.2);
}
.rc-verdict h4 {
  margin-bottom: 0.5rem;
}
.rc-verdict h5 {
  color: var(--cyan);
  margin: 0.5rem 0 0.3rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.overlay-custom-input {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(86, 214, 255, 0.1);
  background: rgba(14, 27, 58, 0.3);
}
.overlay-custom-label {
  color: var(--cyan);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.overlay-custom-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.overlay-custom-row .free-input {
  flex: 1;
}
.overlay-custom-btn {
  padding: 0.55rem 1rem !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
  min-width: auto !important;
}

.tool-link-block {
  margin: 0.5rem 0;
  padding: 10px 14px;
  background: rgba(86, 214, 255, 0.04);
  border: 1px solid rgba(86, 214, 255, 0.18);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.tool-link-name {
  font-size: 15px;
  margin-bottom: 4px;
}
.tool-link-name a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.tool-link-url {
  margin-bottom: 4px;
}
.tool-link-url a {
  color: var(--accent-purple);
  text-decoration: underline;
  font-size: 13px;
  word-break: break-all;
}
.tool-link-url a:hover {
  color: var(--cyan);
}
.tool-link-block a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}
.tool-link-block a:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(86, 214, 255, 0.3);
}
.tool-chip-link {
  background: rgba(86, 214, 255, 0.1) !important;
  border-color: var(--cyan) !important;
  padding: 4px 12px !important;
}
.tool-link-block .tool-section-hint {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}
.teacher-step-tools {
  margin: 8px 0 12px;
  padding: 8px 0;
}
.step-tools-title {
  color: var(--cyan);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}

.vpn-warning {
  margin: 0.3rem 0;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 160, 0, 0.05);
  border: 1px solid rgba(255, 160, 0, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  color: #ffb74d;
  line-height: 1.4;
}

.step-level-toggle {
  display: flex;
  gap: 0.3rem;
  margin: 0.5rem 0 0.3rem;
}
.step-level-btn {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(10, 16, 36, 0.5);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  text-align: center;
}
.step-level-btn.active {
  background: rgba(86, 214, 255, 0.08);
  border-color: rgba(86, 214, 255, 0.3);
  color: var(--cyan);
  font-weight: 600;
}
.step-level-btn:hover:not(.active) {
  border-color: rgba(86, 214, 255, 0.2);
  color: var(--text-primary);
}
.step-brief {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
}
.step-detailed {
  padding: 0.3rem 0;
}

.reg-micro-block {
  margin: 0.4rem 0;
  padding: 0.5rem 0.7rem;
  background: rgba(124, 77, 255, 0.05);
  border: 1px solid rgba(124, 77, 255, 0.18);
  border-radius: var(--radius);
  font-size: 0.82rem;
}
.reg-micro-block summary {
  cursor: pointer;
  color: var(--accent-purple);
  font-weight: 600;
  font-size: 0.83rem;
}
.reg-micro-block summary:hover {
  color: var(--accent-pink);
}
.reg-micro-steps {
  margin-top: 0.4rem;
  padding-left: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
}
.reg-micro-steps li {
  margin-bottom: 0.15rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(86, 214, 255, 0.1);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 9, 21, 0.85);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  backdrop-filter: blur(8px);
}
#loading p { color: var(--text-secondary); }

.fab-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.neoagent-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: transparent;
  border: 1px solid rgba(86, 214, 255, 0.2);
  border-radius: 28px;
  color: var(--cyan);
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  animation: neoagent-pulse 3s ease-in-out infinite;
}
.neoagent-fab:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 36px rgba(86, 214, 255, 0.25);
  transform: scale(1.04);
}
.neoagent-active {
  animation: none;
}
.neoagent-active .neoagent-avatar {
  width: 120px;
  height: 120px;
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(86, 214, 255, 0.35);
  transition: all 0.3s ease;
}
.neoagent-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(86, 214, 255, 0.35);
  flex-shrink: 0;
  animation: neoagent-breathe 5s ease-in-out infinite;
}
.neoagent-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
@keyframes neoagent-pulse {
  0%, 100% {
    box-shadow: none;
    border-color: rgba(86, 214, 255, 0.18);
  }
  50% {
    box-shadow: none;
    border-color: rgba(86, 214, 255, 0.32);
  }
}
@keyframes neoagent-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes neoagent-breathe {
  0% {
    transform: translateY(0px);
    box-shadow: 0 0 10px rgba(86, 214, 255, 0.1), 0 0 0px rgba(86, 214, 255, 0);
    border-color: rgba(86, 214, 255, 0.3);
  }
  35% {
    transform: translateY(-4px);
    box-shadow: 0 6px 22px rgba(86, 214, 255, 0.2), 0 0 30px rgba(86, 214, 255, 0.08);
    border-color: rgba(86, 214, 255, 0.55);
  }
  65% {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(86, 214, 255, 0.14), 0 0 18px rgba(86, 214, 255, 0.05);
    border-color: rgba(86, 214, 255, 0.4);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 0 10px rgba(86, 214, 255, 0.1), 0 0 0px rgba(86, 214, 255, 0);
    border-color: rgba(86, 214, 255, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .neoportal-badge,
  .neoagent-avatar,
  .neoagent-fab {
    animation: none !important;
  }
  .neoportal-badge-wrap::after {
    animation: none !important;
    opacity: 0;
  }
}

.chat-panel {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  width: 380px;
  max-height: 500px;
  background: rgba(10, 16, 36, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(86, 214, 255, 0.06);
  animation: fadeIn 0.3s ease-out;
  backdrop-filter: blur(20px);
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(86, 214, 255, 0.1);
  background: rgba(6, 9, 21, 0.6);
}
.chat-header-left { display: flex; align-items: center; gap: 0.5rem; }
.chat-header-left h3 { font-size: 0.95rem; color: var(--text-primary); font-weight: 600; margin: 0; }
.chat-header-right { display: flex; gap: 0.4rem; }
.chat-back-btn, .chat-new-btn, .chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.chat-back-btn:hover, .chat-new-btn:hover, .chat-close-btn:hover {
  color: var(--cyan);
  background: rgba(86, 214, 255, 0.06);
}

.chat-thread-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 214, 255, 0.1) transparent;
}
.chat-thread-item {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 0.3rem;
}
.chat-thread-item:hover { background: rgba(14, 27, 58, 0.4); }
.chat-thread-item-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-thread-item-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }
.chat-thread-empty { text-align: center; color: var(--text-muted); padding: 2rem 1rem; font-size: 0.9rem; }

.chat-conversation { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 214, 255, 0.1) transparent;
}
.chat-msg {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  border-bottom-right-radius: 4px;
}
.chat-msg.assistant {
  align-self: flex-start;
  background: rgba(14, 27, 58, 0.5);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}
.chat-msg.typing {
  align-self: flex-start;
  background: rgba(14, 27, 58, 0.5);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
  font-style: italic;
}

.chat-sources {
  padding: 0.4rem 0.8rem;
  border-top: 1px solid rgba(86, 214, 255, 0.1);
  font-size: 0.72rem;
  color: var(--text-muted);
  max-height: 60px;
  overflow-y: auto;
  flex-shrink: 0;
}
.chat-sources span { color: var(--cyan); }

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid rgba(86, 214, 255, 0.1);
  background: rgba(6, 9, 21, 0.5);
  flex-shrink: 0;
}
.chat-input-area textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--glass-border);
  background: rgba(6, 9, 21, 0.6);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  max-height: 80px;
  min-height: 36px;
  font-family: var(--font-body);
  line-height: 1.3;
}
.chat-input-area textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 12px rgba(86, 214, 255, 0.1); }
#chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(42, 124, 255, 0.2);
}
#chat-send-btn:hover { opacity: 0.88; transform: scale(1.05); }
#chat-send-btn:disabled { opacity: 0.25; cursor: not-allowed; transform: none; }

.progress-section {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(6, 9, 21, 0.5);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(86, 214, 255, 0.2);
}

.module-check {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.module-check input[type="checkbox"] {
  display: none;
}

.module-check .checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--glass-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: transparent;
}

.module-check input:checked + .checkmark {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(86, 214, 255, 0.2);
}

.module-check input:checked + .checkmark::after {
  content: '\2713';
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 700;
}

.module-card.module-completed {
  border-color: rgba(86, 214, 255, 0.2);
  opacity: 0.8;
}

.module-card.module-completed .module-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

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

@keyframes badgeUnlock {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.action-btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(86, 214, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.action-btn-outline:hover {
  background: rgba(86, 214, 255, 0.06);
  box-shadow: 0 0 16px rgba(86, 214, 255, 0.1);
  border-color: var(--cyan);
}

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-notification {
  background: rgba(10, 16, 36, 0.95);
  color: var(--text-primary);
  border: 1px solid rgba(86, 214, 255, 0.3);
  border-radius: 14px;
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(86, 214, 255, 0.08);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.toast-notification.show {
  transform: translateX(0);
}

.pomodoro-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9000;
}

.pomo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(86, 214, 255, 0.15);
  border-radius: 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: none;
  transition: all 0.3s ease;
}
.pomo-header:hover {
  border-color: var(--cyan);
  box-shadow: 0 6px 30px rgba(86, 214, 255, 0.15);
}
.pomo-header-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(86, 214, 255, 0.2));
}
.pomo-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pomo-header-title {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.pomo-header-sub {
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2px;
}

.pomodoro-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 280px;
  background: rgba(10, 16, 36, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(86, 214, 255, 0.06);
  backdrop-filter: blur(20px);
}

.pomo-display {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.pomo-status {
  text-align: center;
  color: var(--cyan);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.pomo-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pomo-controls button {
  background: rgba(14, 27, 58, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pomo-controls button:hover {
  border-color: rgba(86, 214, 255, 0.3);
  color: var(--cyan);
  background: rgba(86, 214, 255, 0.06);
}

.pomo-stats {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.pomo-stats span {
  color: var(--cyan);
  font-weight: 600;
}

.view-dashboard {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.dash-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-stats,
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-stat {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.dash-stat:hover {
  border-color: rgba(86, 214, 255, 0.25);
  box-shadow: 0 0 20px rgba(86, 214, 255, 0.05);
}

.dash-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--font-body);
}

.dash-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dash-section-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(86, 214, 255, 0.08);
}

.dash-badges,
.dashboard-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dash-badge {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
}

.dash-badge.earned {
  border-color: rgba(86, 214, 255, 0.35);
  animation: badgeUnlock 0.5s ease;
  box-shadow: 0 0 16px rgba(86, 214, 255, 0.08);
}

.dash-badge.locked {
  opacity: 0.35;
  filter: grayscale(1);
}

.dash-badge-icon {
  font-size: 1.5rem;
}

.dash-badge-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.dash-badge-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.dash-routes {
  margin-bottom: 2rem;
}

.dash-route-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.dash-route-item:hover {
  border-color: rgba(86, 214, 255, 0.3);
  background: rgba(14, 27, 58, 0.4);
}

.dash-route-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dash-route-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dash-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.home-dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.home-dashboard-btn:hover {
  border-color: rgba(86, 214, 255, 0.3);
  color: var(--cyan);
}

@media (max-width: 600px) {
  .home-title { font-size: 2.2rem; letter-spacing: 3px; }
  .home-logo { width: 80px; height: 80px; }
  .intro-title { font-size: 2.2rem; letter-spacing: 3px; }
  .intro-logo { width: 90px; height: 90px; }
  .row-2 { flex-direction: column; gap: 0; }
  .overlay-sheet { max-width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; }
  .drawer-sheet { max-width: 100%; }
  .role-toggle { flex-direction: column; }
  .toggle-btn { border-bottom: 1px solid var(--glass-border); }
  .toggle-btn:last-child { border-bottom: none; }
  .chat-panel { width: 100%; max-height: 80vh; }
  .fab-stack { bottom: 1rem; right: 1rem; gap: 10px; }
  .neoagent-fab { padding: 5px 12px 5px 5px; }
  .neoagent-avatar { width: 60px; height: 60px; }
  .neoagent-label { font-size: 0.75rem; }
  .neoportal-card { max-width: 100%; margin-left: 0; margin-right: 0; padding: 14px 16px; }
  .home-btn-img { width: 52px; height: 52px; }
  .home-btn-secondary .home-btn-img { width: 32px; height: 32px; }
  .home-btn-secondary { max-width: 100%; }
  .pomo-header { padding: 8px 12px; }
  .pomo-header-img { width: 48px; height: 48px; }
  .pomo-header-title { font-size: 0.75rem; }
  .pomo-header-sub { font-size: 0.6rem; }
  .header-text h1 { font-size: 1rem; letter-spacing: 2px; }
  .mm-step-actions { flex-direction: column; }
  .mm-action-btn { width: 100%; text-align: center; }
  .mm-modal-sheet { max-height: 90vh; }
  .pomodoro-widget { bottom: 1rem; left: 1rem; }
  .pomodoro-panel { width: 260px; bottom: 60px; }
  .dash-stats, .dashboard-stats { grid-template-columns: 1fr; }
  .dash-badges, .dashboard-badges { grid-template-columns: 1fr 1fr; }
}

.gen-progress-widget {
  width: 100%;
  max-width: 520px;
  margin-top: 0.8rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(135deg, rgba(0,229,255,0.04), rgba(0,229,255,0.01));
  border: 1px solid rgba(0,229,255,0.09);
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
}
.gen-progress-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
}
.gen-progress-icon {
  font-size: 1.1rem;
}
.gen-progress-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 4px rgba(86, 214, 255, 0.12));
}
.gen-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.gen-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7c4dff);
  border-radius: 4px;
  transition: width 1s ease;
}
.gen-progress-details {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.gen-progress-details strong {
  color: var(--text-primary);
}

.clarify-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.clarify-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.clarify-sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 36, 0.97);
  padding: 20px 28px 12px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.clarify-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.clarify-header-top h2 {
  color: var(--cyan);
  font-size: 22px;
  margin: 0;
}
.clarify-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}
.clarify-close:hover {
  color: var(--text-primary);
}
.clarify-hint {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.clarify-category {
  display: inline-block;
  background: rgba(86, 214, 255, 0.1);
  color: var(--cyan);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}
.clarify-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
.clarify-skip-btn {
  padding: 10px 18px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
}
.clarify-skip-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: rgba(255,255,255,0.08);
}
.clarify-apply-btn {
  flex: 1;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--cyan), var(--accent-purple));
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.clarify-apply-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.clarify-apply-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.clarify-action-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}
.clarify-questions-scroll {
  overflow-y: auto;
  padding: 20px 28px 28px;
  flex: 1;
}
.clarify-question {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.clarify-question:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.clarify-q-text {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.clarify-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.clarify-opt-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.clarify-opt-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(86, 214, 255, 0.06);
}
.clarify-opt-btn.selected {
  background: rgba(86, 214, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(86, 214, 255, 0.2);
}
.clarify-custom-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  margin-top: 4px;
  font-family: var(--font-body);
}
.clarify-custom-input:focus {
  border-color: var(--cyan);
  outline: none;
}

.teacher-view-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}
.tv-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.tv-btn.active {
  background: rgba(0,229,255,0.15);
  color: var(--accent);
  font-weight: 600;
}
.tv-btn:hover:not(.active) {
  color: var(--text-primary);
}

.teacher-tools-block .teacher-tool-top {
  margin-bottom: 12px;
}
.teacher-tool-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}
.teacher-alt-tools summary {
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.teacher-alt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}
.teacher-alt-item .tool-chip {
  font-size: 12px;
}

.agent-mode-block {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 10px;
}
.agent-mode-block h5 {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 6px;
}
.agent-mode-block p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.teacher-step {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 18px;
  transition: all 0.2s;
}
.teacher-step.collapsed .teacher-step-body,
.teacher-step.collapsed .mm-step-actions,
.teacher-step.collapsed .step-intent {
  display: none;
}
.teacher-step .mm-step-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.step-time-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0,229,255,0.1);
  color: var(--accent);
  font-weight: 500;
}
.step-collapse-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.2s;
}
.teacher-step.collapsed .step-collapse-arrow {
  transform: rotate(-90deg);
}

.teacher-step-body {
  margin-top: 8px;
}
.teacher-step-body .tv-detailed,
.teacher-step-body .tv-brief,
.teacher-step-body .tv-expert {
  padding: 4px 0;
}

.teacher-section {
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}
.teacher-section summary {
  padding: 8px 12px;
  background: rgba(0,229,255,0.04);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.teacher-section summary::before {
  content: '▸';
  font-size: 11px;
  transition: transform 0.15s;
}
.teacher-section[open] summary::before {
  transform: rotate(90deg);
}
.teacher-section summary::-webkit-details-marker {
  display: none;
}
.teacher-section > *:not(summary) {
  padding: 8px 12px;
}
.teacher-section-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.teacher-substeps-list {
  padding-left: 20px;
  margin: 0;
}
.teacher-substeps-list li {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 4px 0;
  line-height: 1.5;
}
.teacher-micro-list {
  padding-left: 20px;
  margin: 0;
}
.teacher-micro-list li {
  color: var(--text-muted);
  font-size: 13px;
  margin: 3px 0;
}
.teacher-examples-list {
  list-style: none;
  padding: 0;
}
.teacher-examples-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.teacher-examples-list li:last-child {
  border-bottom: none;
}
.brief-substeps {
  padding-left: 18px;
  margin: 4px 0;
}
.brief-substeps li {
  font-size: 13px;
  color: var(--text-muted);
  margin: 2px 0;
}

.expert-substeps {
  padding-left: 18px;
  margin: 4px 0;
}
.expert-substeps li {
  font-size: 13px;
  color: var(--text-muted);
  margin: 2px 0;
}
.expert-tools {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.expert-check {
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
  opacity: 0.8;
}

.teacher-criteria-list,
.teacher-mistakes-list {
  list-style: none;
  padding: 0;
}
.teacher-criteria-list li {
  padding: 3px 0;
  font-size: 14px;
  color: var(--accent);
}
.teacher-mistakes-list li {
  padding: 5px 0;
  font-size: 14px;
  color: #d29922;
  line-height: 1.5;
}

.agent-mode-steps {
  margin-top: 12px;
}
.agent-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(0,229,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(0,229,255,0.1);
}
.agent-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.agent-step strong {
  color: var(--text-primary);
  font-size: 14px;
}
.agent-step p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 2px 0 0;
  line-height: 1.4;
}
.agent-mode-toggle-btn.agent-mode-active {
  background: var(--accent) !important;
  color: var(--bg-page) !important;
}

.job-progress-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,17,23,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-progress-overlay.hidden {
  display: none;
}
.job-progress-container {
  text-align: center;
  max-width: 400px;
  padding: 40px;
}
.job-progress-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.job-progress-msg {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 16px;
}
.job-progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.job-progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}
.job-progress-pct {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.troubleshoot-detail {
  margin-bottom: 8px;
}
.troubleshoot-detail summary {
  color: #d29922;
  font-size: 13px;
  cursor: pointer;
}

.teacher-fallback-notice {
  background: rgba(210,153,34,0.1);
  border: 1px solid rgba(210,153,34,0.3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}
.teacher-fallback-notice p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.teacher-fallback-notice p:first-child {
  color: #d29922;
  font-weight: 600;
  font-size: 15px;
}

.teacher-expand-block {
  text-align: center;
  margin: 20px 0;
  padding: 16px;
  border: 1px dashed rgba(0,229,255,0.3);
  border-radius: 10px;
  background: rgba(0,229,255,0.04);
}
.teacher-expand-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

.debug-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13,17,23,0.95);
  border-top: 2px solid var(--accent);
  padding: 8px 16px;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
  z-index: 10000;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.debug-panel .debug-item {
  display: flex;
  gap: 4px;
}
.debug-panel .debug-label {
  color: var(--accent);
}

.create-suggestions {
  margin-top: 20px;
}
.suggest-section {
  margin-bottom: 18px;
}
.suggest-title {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 600;
}
.suggest-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suggest-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 320px;
  flex: 1 1 260px;
}
.suggest-card:hover {
  border-color: var(--cyan);
  background: rgba(86, 214, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(86, 214, 255, 0.1);
}
.suggest-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.2;
}
.suggest-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.suggest-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}
.suggest-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.suggest-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.suggest-card.suggest-recent {
  border-color: rgba(124, 77, 255, 0.3);
  background: rgba(124, 77, 255, 0.06);
}
.suggest-card.suggest-recent:hover {
  border-color: var(--accent-purple);
  background: rgba(124, 77, 255, 0.12);
}
.suggest-card.suggest-continue {
  border-color: rgba(224, 64, 251, 0.25);
  background: rgba(224, 64, 251, 0.05);
}
.suggest-card.suggest-continue:hover {
  border-color: var(--accent-pink);
  background: rgba(224, 64, 251, 0.1);
}
.suggest-card.suggest-context {
  border-color: rgba(86, 214, 255, 0.3);
  background: rgba(86, 214, 255, 0.04);
}
.suggest-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  padding: 8px;
}


@media print {
  body { background: #fff !important; color: #000 !important; }
  body::before { display: none !important; }
  .app-header, .site-footer, #chat-fab, .chat-panel, #pomodoro-widget, .toast-container { display: none !important; }
  #view-home, #view-create, #view-career, #view-dashboard { display: none !important; }
  #view-route { display: block !important; }
  .module-card { break-inside: avoid; border: 1px solid #ccc !important; background: #fff !important; color: #000 !important; opacity: 1 !important; animation: none !important; }
  .module-header { color: #000 !important; }
  .module-title { color: #000 !important; text-decoration: none !important; }
  .module-num { background: #eee !important; color: #000 !important; }
  .progress-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .step-open-btn, .module-check, #pdf-btn { display: none !important; }
  .action-btn-outline { display: none !important; }
  .debug-panel { display: none !important; }
}

.platform-picker {
  margin: 6px 0;
}
.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.platform-chip {
  background: rgba(86, 214, 255, 0.06);
  border: 1px solid rgba(86, 214, 255, 0.18);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.platform-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(86, 214, 255, 0.1);
}
.platform-chip.selected {
  background: rgba(86, 214, 255, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(86, 214, 255, 0.2);
}
.form-helper {
  color: var(--text-muted);
  font-size: 12px;
  margin: 4px 0;
  line-height: 1.4;
}
.form-helper-sub {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 6px;
}

.neo-tooltip {
  position: fixed;
  z-index: 99999;
  max-width: 280px;
  padding: 10px 14px;
  background: rgba(8, 12, 30, 0.95);
  border: 1px solid rgba(86, 214, 255, 0.25);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 12.5px;
  line-height: 1.5;
  font-family: var(--font-body);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 12px rgba(86, 214, 255, 0.08);
  backdrop-filter: blur(16px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.neo-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tool Learn (NeoPortal Bridge) ─────────────────────────────────────────── */

.tl-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
}
.tl-loading-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tl-error-wrap { padding: 2rem 0; }
.tl-error-card { text-align: center; padding: 2.5rem 2rem; }
.tl-error-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.tl-error-card h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.tl-error-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.tl-error-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tl-header {
  position: relative;
  padding: 1.8rem 1.6rem;
}
.tl-header-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.tl-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.tl-badge-source {
  background: rgba(86, 214, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(86, 214, 255, 0.25);
}
.tl-badge-cat {
  background: rgba(86, 214, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.tl-badge-curated {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.tl-badge-ai {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.tl-badge-fallback {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.tl-tool-name {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.6rem 0;
  line-height: 1.2;
}
.tl-summary {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.tl-header-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.tl-portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(86, 214, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(86, 214, 255, 0.3);
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}
.tl-portal-cta:hover {
  background: rgba(86, 214, 255, 0.15);
  box-shadow: 0 0 16px rgba(86, 214, 255, 0.15);
  transform: translateY(-1px);
}
.tl-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(86, 214, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(86, 214, 255, 0.3);
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
}
.tl-portal-btn:hover {
  background: rgba(86, 214, 255, 0.15);
  box-shadow: 0 0 16px rgba(86, 214, 255, 0.15);
}
.tl-start-btn {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}
.tl-start-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(86, 214, 255, 0.25);
}

.tl-section { margin-bottom: 0; }
.tl-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}
.tl-section-body {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.tl-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .tl-two-col { grid-template-columns: 1fr; }
}

.tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tl-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  padding-left: 1.2rem;
  position: relative;
}
.tl-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.tl-strengths-card .tl-list li::before { color: #22c55e; }
.tl-weaknesses-card .tl-list li::before { color: #f87171; }

.tl-list-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tl-list-inline li {
  display: inline-block;
  padding: 0.3rem 0.8rem 0.3rem 0.8rem;
  background: rgba(86, 214, 255, 0.07);
  border: 1px solid rgba(86, 214, 255, 0.18);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--cyan);
}
.tl-list-inline li::before { display: none; }

.tl-muted { color: var(--text-secondary); font-size: 0.88rem; font-style: italic; }

.tl-difficulty-wrap { display: flex; flex-direction: column; gap: 0.8rem; }
.tl-difficulty-chip {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  background: rgba(86, 214, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(86, 214, 255, 0.25);
}
.tl-diff-easy { background: rgba(34, 197, 94, 0.1); color: #22c55e; border-color: rgba(34, 197, 94, 0.25); }
.tl-diff-med { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border-color: rgba(251, 191, 36, 0.25); }
.tl-diff-hard { background: rgba(248, 113, 113, 0.1); color: #f87171; border-color: rgba(248, 113, 113, 0.25); }
.tl-difficulty-hint {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  font-style: italic;
}

.tl-next-lesson-card { background: rgba(86, 214, 255, 0.03); border-color: rgba(86, 214, 255, 0.15); }
.tl-next-lesson { display: flex; flex-direction: column; gap: 0.6rem; }
.tl-nl-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.tl-nl-reason { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
.tl-nl-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(86, 214, 255, 0.3);
  color: var(--cyan);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 0.2rem;
  transition: all 0.2s ease;
}
.tl-nl-btn:hover { background: rgba(86, 214, 255, 0.1); }

.tl-unverified {
  padding: 0.7rem 1rem;
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: var(--radius);
  font-size: 0.83rem;
  color: #fb923c;
  line-height: 1.5;
}

.tl-footer-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 1.2rem 1.4rem;
}

/* Light mode overrides for tool-learn */
body.theme-lite .tl-badge-source { background: rgba(0, 85, 229, 0.08); color: #0055e5; border-color: rgba(0, 85, 229, 0.2); }
body.theme-lite .tl-portal-cta { background: rgba(0, 85, 229, 0.06); color: #0055e5; border-color: rgba(0, 85, 229, 0.25); }
body.theme-lite .tl-portal-cta:hover { background: rgba(0, 85, 229, 0.12); }
body.theme-lite .tl-list-inline li { background: rgba(0, 85, 229, 0.06); border-color: rgba(0, 85, 229, 0.18); color: #0055e5; }
body.theme-lite .tl-difficulty-chip { background: rgba(0, 85, 229, 0.08); color: #0055e5; border-color: rgba(0, 85, 229, 0.2); }
body.theme-lite .tl-next-lesson-card { background: rgba(0, 85, 229, 0.03); border-color: rgba(0, 85, 229, 0.12); }
body.theme-lite .tl-nl-btn { border-color: rgba(0, 85, 229, 0.3); color: #0055e5; }
body.theme-lite .tl-nl-btn:hover { background: rgba(0, 85, 229, 0.08); }

/* ── Roadmap Card ────────────────────────────────────────────────────────── */
.tl-roadmap-card { background: rgba(86, 214, 255, 0.02); border-color: rgba(86, 214, 255, 0.12); }
.tl-roadmap-trigger-btn {
  background: transparent;
  border: 1px solid rgba(86, 214, 255, 0.35);
  color: var(--cyan);
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tl-roadmap-trigger-btn:hover { background: rgba(86, 214, 255, 0.1); }
.tl-roadmap-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.5rem; }
.tl-roadmap-intro { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 1rem; }
.tl-roadmap-modules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; counter-reset: rm-counter; }
.tl-roadmap-module {
  background: rgba(86, 214, 255, 0.04);
  border: 1px solid rgba(86, 214, 255, 0.1);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  counter-increment: rm-counter;
}
.tl-roadmap-module-num { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--cyan); opacity: 0.7; }
.tl-roadmap-module-title { font-size: 0.97rem; font-weight: 700; color: var(--text-primary); }
.tl-roadmap-module-desc { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; }
.tl-roadmap-module-goal { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.tl-roadmap-substeps { margin: 0.2rem 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.tl-roadmap-substeps li { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; list-style: disc; }
.tl-roadmap-practice { font-size: 0.84rem; color: #4ade80; line-height: 1.5; }
.tl-roadmap-mistakes { font-size: 0.83rem; color: #fb923c; line-height: 1.5; }
.tl-roadmap-milestone {
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(86, 214, 255, 0.06);
  border: 1px solid rgba(86, 214, 255, 0.18);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
}
.tl-roadmap-loading { display: flex; align-items: center; gap: 0.7rem; color: var(--text-secondary); font-size: 0.9rem; padding: 0.5rem 0; }
.spinner-sm { width: 18px; height: 18px; border: 2px solid rgba(86, 214, 255, 0.2); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
.tl-roadmap-module-steps { font-size: 0.8rem; color: var(--cyan); opacity: 0.75; margin-top: 0.25rem; }
.tl-roadmap-cta-block { margin-top: 1.5rem; padding: 1.2rem 1.4rem; background: rgba(86, 214, 255, 0.04); border: 1px solid rgba(86, 214, 255, 0.18); border-radius: 12px; display: flex; flex-direction: column; gap: 0.9rem; }
.tl-roadmap-cta-hint { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.tl-roadmap-cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--cyan), #3b82f6); color: #000; font-weight: 700; font-size: 0.92rem; border: none; border-radius: 10px; padding: 0.75rem 1.5rem; cursor: pointer; transition: opacity 0.2s; align-self: flex-start; }
.tl-roadmap-cta-btn:hover { opacity: 0.88; }

body.theme-lite .tl-roadmap-card { background: rgba(0, 85, 229, 0.02); border-color: rgba(0, 85, 229, 0.1); }
body.theme-lite .tl-roadmap-trigger-btn { border-color: rgba(0, 85, 229, 0.3); color: #0055e5; }
body.theme-lite .tl-roadmap-trigger-btn:hover { background: rgba(0, 85, 229, 0.08); }
body.theme-lite .tl-roadmap-module { background: rgba(0, 85, 229, 0.03); border-color: rgba(0, 85, 229, 0.1); }
body.theme-lite .tl-roadmap-module-num { color: #0055e5; }
body.theme-lite .tl-roadmap-module-steps { color: #0055e5; }
body.theme-lite .tl-roadmap-cta-block { background: rgba(0, 85, 229, 0.03); border-color: rgba(0, 85, 229, 0.15); }
.tl-roadmap-check { font-size: 0.84rem; color: #4ade80; line-height: 1.5; margin-top: 0.4rem; }
.tl-roadmap-checklist { margin: 0.2rem 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.tl-roadmap-checklist li { list-style: disc; font-size: 0.83rem; color: #4ade80; }
.tl-roadmap-next-step { margin-top: 1rem; padding: 0.85rem 1.1rem; background: rgba(86, 214, 255, 0.05); border-left: 3px solid var(--cyan); border-radius: 0 8px 8px 0; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.tl-roadmap-next-step strong { color: var(--cyan); }
@keyframes tl-flash { 0% { box-shadow: 0 0 0 0 rgba(86, 214, 255, 0); } 30% { box-shadow: 0 0 0 6px rgba(86, 214, 255, 0.35); } 100% { box-shadow: 0 0 0 0 rgba(86, 214, 255, 0); } }
.tl-roadmap-highlight { animation: tl-flash 1.4s ease-out forwards; }
body.theme-lite .tl-roadmap-check { color: #166534; }
body.theme-lite .tl-roadmap-checklist li { color: #166534; }
body.theme-lite .tl-roadmap-next-step { background: rgba(0, 85, 229, 0.04); border-left-color: #0055e5; }
body.theme-lite .tl-roadmap-next-step strong { color: #0055e5; }
body.theme-lite .tl-roadmap-milestone { background: rgba(0, 85, 229, 0.05); border-color: rgba(0, 85, 229, 0.15); color: #0055e5; }

/* ── Language Switcher ─────────────────────────────────────────────────────── */
.header-controls { display: flex; align-items: center; gap: 0.75rem; }
.lang-switcher { display: flex; align-items: center; }
.lang-select {
  background: rgba(86, 214, 255, 0.08);
  border: 1px solid rgba(86, 214, 255, 0.25);
  border-radius: 8px;
  color: var(--text-primary, #f0f4ff);
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-width: 7rem;
  text-align: center;
}
.lang-select:hover { border-color: var(--cyan, #56d6ff); background: rgba(86, 214, 255, 0.14); }
.lang-select:focus { border-color: var(--cyan, #56d6ff); box-shadow: 0 0 0 2px rgba(86, 214, 255, 0.15); }
.lang-select option { background: #0b0f1e; color: #f0f4ff; }
body.theme-lite .lang-select { background: rgba(0, 85, 229, 0.07); border-color: rgba(0, 85, 229, 0.22); color: #0a1628; }
body.theme-lite .lang-select option { background: #ffffff; color: #0a1628; }

/* ── RTL support (Hebrew — lang-rtl class on body) ─────────────────────────── */
body.lang-rtl { direction: rtl; text-align: right; }
body.lang-rtl .header-brand { flex-direction: row-reverse; }
body.lang-rtl .header-inner { flex-direction: row-reverse; }
body.lang-rtl .back-btn svg { transform: scaleX(-1); }
body.lang-rtl .home-buttons { align-items: stretch; }
body.lang-rtl .home-btn { flex-direction: row-reverse; text-align: right; }
body.lang-rtl .home-btn-icon { margin-right: 0; margin-left: 0.75rem; }
body.lang-rtl .form-group label { display: block; text-align: right; }
body.lang-rtl .row-2 { flex-direction: row-reverse; }
body.lang-rtl .overlay-header { flex-direction: row-reverse; }
body.lang-rtl .overlay-custom-row { flex-direction: row-reverse; }
body.lang-rtl .drawer-header { flex-direction: row-reverse; }
body.lang-rtl .mm-modal-header { flex-direction: row-reverse; }
body.lang-rtl .chat-header { flex-direction: row-reverse; }
body.lang-rtl .chat-header-left { flex-direction: row-reverse; }
body.lang-rtl .chat-header-right { flex-direction: row-reverse; }
body.lang-rtl .pomo-header { flex-direction: row-reverse; }
body.lang-rtl .pomo-controls { flex-direction: row-reverse; }
body.lang-rtl .tl-header-badges { flex-direction: row-reverse; flex-wrap: wrap; }
body.lang-rtl .tl-header-actions { flex-direction: row-reverse; }
body.lang-rtl .tl-two-col { flex-direction: row-reverse; }
body.lang-rtl .tl-footer-actions { flex-direction: row-reverse; }
body.lang-rtl .tl-roadmap-next-step { border-left: none; border-right: 3px solid var(--cyan, #56d6ff); border-radius: 8px 0 0 8px; }
body.lang-rtl .role-toggle { flex-direction: row-reverse; }
body.lang-rtl .progress-text { text-align: right; }
body.lang-rtl .home-btn-sub { text-align: right; }
body.lang-rtl .neoportal-card-row { flex-direction: row-reverse; }
body.lang-rtl .neoportal-badge-wrap { direction: rtl; }
body.lang-rtl .trust-bar { flex-direction: row-reverse; }
body.lang-rtl .pomo-stats { text-align: right; }
body.lang-rtl input, body.lang-rtl textarea, body.lang-rtl select { text-align: right; }
body.lang-rtl .smart-dropdown { text-align: right; }
body.lang-rtl .overlay-list { text-align: right; }
body.lang-rtl .smart-input { direction: rtl; }
/* Ensure LTR fields keep LTR for numbers/URLs */
body.lang-rtl #pomo-display { direction: ltr; text-align: center; }
body.lang-rtl .progress-bar-wrap { direction: ltr; }
/* Header controls order in RTL */
body.lang-rtl .header-controls { flex-direction: row-reverse; }
body.lang-rtl .np-profile-panel { right: auto; left: 0; }
body.lang-rtl .np-pp-identity { text-align: right; }
body.lang-rtl .np-pp-wallet-row { flex-direction: row-reverse; }
body.lang-rtl .np-pp-link-btn { text-align: right; }
body.lang-rtl .np-pp-nav-btn { text-align: right; flex-direction: row-reverse; }
body.lang-rtl .np-pp-logout-btn { flex-direction: row-reverse; text-align: right; }
body.lang-rtl .np-pp-header { flex-direction: row-reverse; }

.translation-spinner {
  width: 36px; height: 36px; margin: 0 auto 8px;
  border: 3px solid rgba(86,214,255,0.2);
  border-top-color: #56d6ff;
  border-radius: 50%;
  animation: tr-spin 0.8s linear infinite;
}
@keyframes tr-spin { to { transform: rotate(360deg); } }

.view-inner { padding: 0 16px; }
.mm-modal-close { background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; line-height: 1; transition: color 0.15s; }
.mm-modal-close:hover { color: #fff; }

.ap-section { margin-bottom: 28px; }
.ap-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ap-section-header h3 { margin: 0; color: #e0e0e0; font-size: 1.15rem; }
.ap-concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 16px; background: rgba(86,214,255,0.04); border: 1px solid rgba(86,214,255,0.12); border-radius: 12px; }
.ap-concept-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #bbb; }
.ap-concept-icon { font-size: 1.4rem; flex-shrink: 0; }
.ap-concept-item strong { color: #56d6ff; font-size: 0.82rem; letter-spacing: 0.5px; }

.ap-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ap-filter-btn { padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(86,214,255,0.2); background: transparent; color: #aaa; cursor: pointer; font-size: 0.82rem; transition: all 0.2s; }
.ap-filter-btn:hover { border-color: #56d6ff; color: #56d6ff; }
.ap-filter-btn.active { background: rgba(86,214,255,0.15); color: #56d6ff; border-color: #56d6ff; }

.ap-plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ap-plan-card { background: rgba(30,30,50,0.85); border: 1px solid rgba(86,214,255,0.12); border-radius: 14px; padding: 20px; transition: border-color 0.2s; }
.ap-plan-card:hover { border-color: rgba(86,214,255,0.35); }
.ap-plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ap-plan-header h3 { margin: 0; color: #fff; font-size: 1.1rem; }
.ap-plan-badge { padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.ap-status-active { background: rgba(76,175,80,0.18); color: #81c784; }
.ap-status-disabled { background: rgba(244,67,54,0.18); color: #e57373; }
.ap-plan-price { font-size: 1.6rem; font-weight: 700; color: #56d6ff; margin-bottom: 14px; }
.ap-plan-price span { font-size: 0.7rem; color: #888; font-weight: 400; }
.ap-plan-details { margin-bottom: 14px; }
.ap-detail-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; }
.ap-detail-row span { color: #999; }
.ap-detail-row strong { color: #ddd; }
.ap-plan-features { margin-bottom: 14px; font-size: 0.82rem; }
.ap-features-label { color: #888; }
.ap-feature-chip { display: inline-block; padding: 2px 8px; background: rgba(86,214,255,0.08); border: 1px solid rgba(86,214,255,0.15); border-radius: 10px; color: #56d6ff; font-size: 0.75rem; margin: 2px 2px; }
.ap-no-features { color: #666; font-style: italic; }
.ap-plan-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ap-btn { padding: 7px 14px; border-radius: 8px; border: 1px solid rgba(86,214,255,0.2); background: transparent; color: #bbb; cursor: pointer; font-size: 0.8rem; transition: all 0.15s; }
.ap-btn:hover { border-color: #56d6ff; color: #56d6ff; }
.ap-btn-edit { border-color: rgba(86,214,255,0.3); color: #56d6ff; }
.ap-btn-preview { border-color: rgba(156,39,176,0.3); color: #ce93d8; }
.ap-btn-preview:hover { border-color: #ce93d8; }
.ap-btn-disable { border-color: rgba(244,67,54,0.3); color: #e57373; }
.ap-btn-disable:hover { border-color: #e57373; }
.ap-btn-enable { border-color: rgba(76,175,80,0.3); color: #81c784; }
.ap-btn-enable:hover { border-color: #81c784; }
.ap-btn-new { background: rgba(86,214,255,0.1); border-color: rgba(86,214,255,0.3); color: #56d6ff; font-weight: 600; }
.ap-btn-new:hover { background: rgba(86,214,255,0.2); }
.ap-empty { text-align: center; padding: 32px; color: #666; font-style: italic; }

/* User plan card */
.ap-user-plan-card { background: rgba(86,214,255,0.06); border: 1px solid rgba(86,214,255,0.25); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ap-user-plan-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; }
.ap-user-plan-label { color: #888; }
.ap-user-plan-name { color: #56d6ff; font-weight: 700; font-size: 1.05rem; }
.ap-user-plan-val { color: #ddd; font-weight: 600; }
.ap-user-plan-actions { margin-top: 4px; }

/* Plan card CTA */
.ap-plan-cta { margin-top: 14px; }
.ap-btn-subscribe { background: rgba(86,214,255,0.12); border-color: rgba(86,214,255,0.4); color: #56d6ff; font-weight: 600; padding: 8px 16px; }
.ap-btn-subscribe:hover { background: rgba(86,214,255,0.22); border-color: #56d6ff; }
.ap-btn-current { background: rgba(86,214,255,0.05); border-color: rgba(86,214,255,0.15); color: #888; cursor: default; font-weight: 600; padding: 8px 16px; }
.ap-btn-current:hover { background: rgba(86,214,255,0.05); border-color: rgba(86,214,255,0.15); color: #888; }
.ap-plan-card-current { border-color: rgba(86,214,255,0.4); box-shadow: 0 0 0 1px rgba(86,214,255,0.18); }

/* Profile billing button */
.np-pp-nav-links { display: flex; flex-direction: column; gap: 2px; }
.np-pp-nav-btn { width: 100%; background: none; border: none; color: #ccc; font-size: 0.84rem; padding: 9px 12px; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.np-pp-nav-btn:hover { background: rgba(86,214,255,0.08); color: #56d6ff; }
.np-pp-nav-icon { font-size: 0.9rem; width: 20px; text-align: center; opacity: 0.7; flex-shrink: 0; }
.np-pp-nav-btn:hover .np-pp-nav-icon { opacity: 1; }
.np-pp-shared-note { font-size: 0.68rem; color: #666; font-style: italic; margin-top: 2px; }

/* AI limit billing modal */
.neo-billing-limit-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 9800; display: flex; align-items: center; justify-content: center; padding: 20px; }
.neo-billing-limit-box { background: #12141e; border: 1px solid rgba(86,214,255,0.3); border-radius: 18px; padding: 36px 32px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 0 60px rgba(86,214,255,0.1); animation: fadeScaleIn 0.2s ease; }
.neo-billing-limit-icon { font-size: 2.4rem; margin-bottom: 12px; }
.neo-billing-limit-title { color: #e0e0e0; font-size: 1.25rem; font-weight: 700; margin: 0 0 10px 0; }
.neo-billing-limit-desc { color: #999; font-size: 0.92rem; margin: 0 0 24px 0; line-height: 1.5; }
.neo-billing-limit-actions { display: flex; flex-direction: column; gap: 10px; }
.neo-billing-limit-cta { background: linear-gradient(135deg,#56d6ff,#2196f3); border: none; border-radius: 10px; color: #0a0c14; font-size: 1rem; font-weight: 700; padding: 13px 24px; cursor: pointer; transition: opacity 0.15s; }
.neo-billing-limit-cta:hover { opacity: 0.88; }
.neo-billing-limit-skip { background: transparent; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: #777; font-size: 0.88rem; padding: 10px 20px; cursor: pointer; transition: border-color 0.15s; }
.neo-billing-limit-skip:hover { border-color: rgba(255,255,255,0.25); color: #aaa; }

/* ── Logout confirmation modal ───────────────────────────────────────────── */
.neo-logout-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.neo-logout-modal-box { background: #12141e; border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 36px 32px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 0 60px rgba(0,0,0,0.5); animation: fadeScaleIn 0.2s ease; }
.neo-logout-modal-icon { font-size: 2.2rem; margin-bottom: 14px; }
.neo-logout-modal-title { color: #e0e0e0; font-size: 1.1rem; font-weight: 700; margin: 0 0 8px 0; line-height: 1.4; }
.neo-logout-modal-desc { color: #888; font-size: 0.88rem; margin: 0 0 26px 0; line-height: 1.5; }
.neo-logout-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.neo-logout-confirm-btn { background: rgba(255,80,80,0.12); border: 1px solid rgba(255,80,80,0.3); border-radius: 10px; color: #ff7070; font-size: 0.95rem; font-weight: 600; padding: 12px 24px; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.neo-logout-confirm-btn:hover { background: rgba(255,80,80,0.22); border-color: rgba(255,80,80,0.55); }
.neo-logout-cancel-btn { background: transparent; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #777; font-size: 0.88rem; padding: 10px 20px; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.neo-logout-cancel-btn:hover { border-color: rgba(255,255,255,0.22); color: #aaa; }

.ap-project-block { background: rgba(30,30,50,0.85); border: 1px solid rgba(86,214,255,0.12); border-radius: 14px; padding: 20px; }
.ap-project-block h3 { color: #e0e0e0; margin: 0 0 16px 0; font-size: 1.05rem; }
.ap-ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ap-ps-item { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.ap-ps-item span { color: #888; }
.ap-ps-item strong { color: #ddd; }
.ap-ps-actions { display: flex; gap: 8px; }

.ap-modal-content { max-width: 560px; }

.ap-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.ap-preview-item { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.ap-preview-item span { color: #888; }
.ap-preview-item strong { color: #ddd; }
.ap-safe { color: #81c784 !important; }
.ap-unsafe { color: #e57373 !important; }
.ap-warnings { margin-top: 14px; padding: 12px; background: rgba(255,152,0,0.08); border: 1px solid rgba(255,152,0,0.2); border-radius: 8px; font-size: 0.82rem; color: #ffb74d; }
.ap-warnings strong { color: #ffa726; }
.ap-warnings ul { margin: 6px 0 0 16px; padding: 0; }
.ap-warnings li { margin-bottom: 4px; }

@media (max-width: 600px) {
  .ap-plan-cards { grid-template-columns: 1fr; }
  .ap-concepts { grid-template-columns: 1fr 1fr; }
  .ap-ps-grid { grid-template-columns: 1fr 1fr; }
  .ap-preview-grid { grid-template-columns: 1fr; }
}

.np-profile-wrap { position: relative; }
.np-profile-btn { background: linear-gradient(135deg, rgba(86,214,255,0.08), rgba(123,97,255,0.08)); border: 2px solid rgba(86,214,255,0.35); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; position: relative; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.np-profile-btn:hover { border-color: #56d6ff; box-shadow: 0 0 16px rgba(86,214,255,0.25); background: linear-gradient(135deg, rgba(86,214,255,0.15), rgba(123,97,255,0.12)); }
.np-profile-btn--guest { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); border-style: dashed; }
.np-profile-btn--guest:hover { border-color: rgba(86,214,255,0.5); border-style: dashed; }
.np-profile-btn--guest .np-profile-avatar { color: rgba(255,255,255,0.5); font-size: 1.1rem; font-weight: 400; text-shadow: none; }
.np-pp-logged-out { padding: 28px 24px; text-align: center; }
.np-pp-logged-out-icon { font-size: 2.2rem; margin-bottom: 10px; }
.np-pp-logged-out-title { color: #e0e0e0; font-size: 1rem; font-weight: 700; margin: 0 0 8px 0; }
.np-pp-logged-out-desc { color: #888; font-size: 0.82rem; margin: 0 0 20px 0; line-height: 1.5; }
.np-pp-login-btn { display: block; width: 100%; padding: 11px 0; background: linear-gradient(135deg, rgba(86,214,255,0.15), rgba(86,214,255,0.25)); border: 1px solid rgba(86,214,255,0.4); border-radius: 10px; color: #56d6ff; font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: inherit; margin-bottom: 10px; transition: all 0.15s; }
.np-pp-login-btn:hover { background: linear-gradient(135deg, rgba(86,214,255,0.25), rgba(86,214,255,0.35)); border-color: #56d6ff; }
.np-pp-register-btn { display: block; width: 100%; padding: 10px 0; background: transparent; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: #999; font-size: 0.85rem; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.np-pp-register-btn:hover { border-color: rgba(255,255,255,0.3); color: #ccc; }
body.theme-lite .np-pp-logged-out-title { color: #333; }
body.theme-lite .np-pp-logged-out-desc { color: #777; }
body.theme-lite .np-pp-login-btn { background: linear-gradient(135deg, rgba(58,108,255,0.1), rgba(58,108,255,0.2)); border-color: rgba(58,108,255,0.4); color: #3a6cff; }
body.theme-lite .np-pp-register-btn { border-color: rgba(0,0,0,0.1); color: #666; }
.np-profile-avatar { font-size: 0.88rem; font-weight: 800; color: #56d6ff; line-height: 1; text-shadow: 0 0 8px rgba(86,214,255,0.3); }

.np-profile-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 300px; background: rgba(10,16,36,0.97); border: 1px solid rgba(86,214,255,0.15); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(86,214,255,0.06); backdrop-filter: blur(20px); z-index: 200; overflow: hidden; animation: np-panel-in 0.18s ease-out; }
@keyframes np-panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.np-pp-header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid rgba(86,214,255,0.1); }
.np-pp-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, rgba(86,214,255,0.2) 0%, rgba(123,97,255,0.2) 100%); border: 2px solid rgba(86,214,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: #56d6ff; flex-shrink: 0; }
.np-pp-identity { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np-pp-identity strong { color: #e0e0e0; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-pp-identity span { color: #888; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-pp-shared-tag { color: #56d6ff !important; font-size: 0.65rem !important; opacity: 0.8; letter-spacing: 0.3px; }

.np-pp-section { padding: 10px 16px; border-bottom: 1px solid rgba(86,214,255,0.06); }
.np-pp-section-title { color: #56d6ff; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.np-pp-wallet { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.np-pp-wallet-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.np-pp-wallet-row span { color: #999; }
.np-pp-wallet-row strong { color: #e0e0e0; }

.np-pp-link-btn { background: rgba(86,214,255,0.03); border: 1px solid rgba(86,214,255,0.15); color: #bbb; font-size: 0.8rem; padding: 8px 12px; border-radius: 8px; cursor: pointer; width: 100%; text-align: left; transition: all 0.15s; margin-top: 4px; display: flex; align-items: center; justify-content: space-between; }
.np-pp-link-btn::after { content: '→'; opacity: 0.4; font-size: 0.75rem; transition: opacity 0.15s, transform 0.15s; }
.np-pp-link-btn:hover { border-color: #56d6ff; color: #56d6ff; background: rgba(86,214,255,0.06); }
.np-pp-link-btn:hover::after { opacity: 1; transform: translateX(2px); }
[dir="rtl"] .np-pp-link-btn::after { content: '←'; }
[dir="rtl"] .np-pp-link-btn:hover::after { transform: translateX(-2px); }
.np-pp-portal-btn { border-color: rgba(123,97,255,0.25); color: #b39ddb; }
.np-pp-portal-btn:hover { border-color: #7b61ff; color: #7b61ff; }

.np-pp-actions { display: flex; flex-direction: column; gap: 4px; }
.np-pp-logout-btn { background: none; border: 1px solid rgba(244,67,54,0.2); color: #e57373; font-size: 0.78rem; padding: 8px 12px; border-radius: 8px; cursor: pointer; width: 100%; text-align: left; transition: all 0.15s; display: flex; align-items: center; gap: 8px; }
.np-pp-logout-btn:hover { border-color: #e57373; background: rgba(244,67,54,0.08); }

.np-pp-footer { padding: 8px 16px; font-size: 0.65rem; color: #666; text-align: center; border-top: 1px solid rgba(86,214,255,0.06); }

body.theme-lite .np-profile-btn { border-color: rgba(80,130,255,0.35); background: linear-gradient(135deg, rgba(80,130,255,0.06), rgba(123,97,255,0.06)); }
body.theme-lite .np-profile-btn:hover { border-color: #3a6cff; box-shadow: 0 0 12px rgba(80,130,255,0.2); }
body.theme-lite .np-profile-avatar { color: #3a6cff; text-shadow: none; }
body.theme-lite .np-profile-panel { background: rgba(255,255,255,0.97); border-color: rgba(80,130,255,0.15); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
body.theme-lite .np-pp-header { border-color: rgba(80,130,255,0.1); }
body.theme-lite .np-pp-avatar { background: rgba(80,130,255,0.1); border-color: rgba(80,130,255,0.25); color: #3a6cff; }
body.theme-lite .np-pp-identity strong { color: #1a1a2e; }
body.theme-lite .np-pp-identity span { color: #666; }
body.theme-lite .np-pp-section { border-color: rgba(80,130,255,0.08); }
body.theme-lite .np-pp-section-title { color: #3a6cff; }
body.theme-lite .np-pp-wallet-row span { color: #666; }
body.theme-lite .np-pp-wallet-row strong { color: #1a1a2e; }
body.theme-lite .np-pp-link-btn { border-color: rgba(80,130,255,0.15); color: #555; }
body.theme-lite .np-pp-link-btn:hover { border-color: #3a6cff; color: #3a6cff; }
body.theme-lite .np-pp-nav-btn { color: #444; }
body.theme-lite .np-pp-nav-btn:hover { background: rgba(80,130,255,0.06); color: #3a6cff; }
body.theme-lite .np-pp-shared-note { color: #999; }
body.theme-lite .np-pp-logout-btn { border-color: rgba(244,67,54,0.15); }
body.theme-lite .np-pp-footer { color: #999; border-color: rgba(80,130,255,0.06); }

@media (max-width: 600px) {
  .np-profile-panel { width: 280px; right: -10px; }
  .theme-toggle-label { display: none; }
}

.neo-bridge-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, rgba(16,22,42,0.97), rgba(10,16,36,0.97));
  border: 1px solid rgba(86,214,255,0.25);
  color: #e0eaf1;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 14px 24px;
  border-radius: 12px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 12px rgba(86,214,255,0.1);
  z-index: 100001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.neo-bridge-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
body.theme-lite .neo-bridge-toast {
  background: rgba(255,255,255,0.97);
  border-color: rgba(80,130,255,0.2);
  color: #2a3a5a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
body.lang-rtl .neo-bridge-toast {
  direction: rtl;
}

/* ── Auth Gate Modal ─────────────────────────────────────────────────────── */
.neo-auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: neoAgFadeIn 0.2s ease;
}
@keyframes neoAgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.neo-auth-gate-card {
  position: relative;
  background: var(--color-surface, #121828);
  border: 1px solid rgba(86,214,255,0.22);
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(86,214,255,0.08);
  animation: neoAgSlideIn 0.22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes neoAgSlideIn {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.neo-auth-gate-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
  padding: 2px 6px;
}
.neo-auth-gate-close:hover { color: rgba(86,214,255,0.9); }
.neo-auth-gate-icon {
  font-size: 40px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(86,214,255,0.35));
}
.neo-auth-gate-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary, #e8f4ff);
  line-height: 1.35;
}
.neo-auth-gate-desc {
  margin: 0 0 22px;
  font-size: 0.88rem;
  color: rgba(200,220,255,0.65);
  line-height: 1.5;
}
.neo-auth-gate-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.neo-auth-gate-btn-primary {
  padding: 13px 0;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #56D6FF 0%, #3ab8e8 100%);
  color: #0a1628;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.neo-auth-gate-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.neo-auth-gate-btn-secondary {
  padding: 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(86,214,255,0.3);
  background: rgba(86,214,255,0.08);
  color: #56D6FF;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.neo-auth-gate-btn-secondary:hover {
  background: rgba(86,214,255,0.14);
  transform: translateY(-1px);
}
.neo-auth-gate-shared {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(200,220,255,0.38);
  letter-spacing: 0.02em;
}

/* Light theme overrides */
body.theme-lite .neo-auth-gate-card {
  background: #ffffff;
  border-color: rgba(51,130,230,0.2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
body.theme-lite .neo-auth-gate-title { color: #0d1f3c; }
body.theme-lite .neo-auth-gate-desc  { color: rgba(30,50,90,0.65); }
body.theme-lite .neo-auth-gate-shared { color: rgba(30,50,90,0.38); }
body.theme-lite .neo-auth-gate-close { color: rgba(30,50,90,0.4); }
body.theme-lite .neo-auth-gate-btn-secondary {
  border-color: rgba(51,130,230,0.35);
  background: rgba(51,130,230,0.07);
  color: #2575d0;
}

/* RTL support */
body.lang-rtl .neo-auth-gate-close { right: auto; left: 18px; }

/* ── Auth Return Banner ───────────────────────────────────────────────────── */
.neo-auth-return-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9990;
  background: var(--color-surface, #121828);
  border: 1px solid rgba(86,214,255,0.28);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.25s ease;
  max-width: 480px;
  width: calc(100% - 40px);
  flex-wrap: wrap;
  justify-content: space-between;
}
.neo-auth-return-banner.neo-auth-return-banner-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.neo-auth-return-msg {
  font-size: 0.9rem;
  color: var(--color-text-primary, #e8f4ff);
  flex: 1;
  min-width: 140px;
}
.neo-auth-return-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.neo-auth-return-btn-primary {
  padding: 8px 18px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #56D6FF 0%, #3ab8e8 100%);
  color: #0a1628;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}
.neo-auth-return-btn-primary:hover { opacity: 0.88; }
.neo-auth-return-btn-dismiss {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(86,214,255,0.2);
  background: transparent;
  color: rgba(200,220,255,0.55);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
}
.neo-auth-return-btn-dismiss:hover { color: rgba(200,220,255,0.9); }

body.theme-lite .neo-auth-return-banner {
  background: #fff;
  border-color: rgba(51,130,230,0.22);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
body.theme-lite .neo-auth-return-msg { color: #0d1f3c; }
body.theme-lite .neo-auth-return-btn-dismiss { color: rgba(30,50,90,0.55); border-color: rgba(51,130,230,0.2); }

body.lang-rtl .neo-auth-return-banner { direction: rtl; }
