/* ==========================================================================
   STARWAY ENGLISH - DESIGN SYSTEM & NEON COSMIC THEME (VANILLA CSS)
   ========================================================================== */

:root {
  /* Color Palette (HSL Tailored for Harmony & Vibrancy) */
  --space-bg-1: 232, 38%, 7%;     /* #0b0d19 Deep Cosmic Blue */
  --space-bg-2: 232, 32%, 14%;    /* #161930 Space Dark Blue */
  --neon-purple: 258, 90%, 66%;   /* #8b5cf6 Glowing Violet */
  --neon-cyan: 188, 95%, 48%;     /* #06b6d4 Cyber Cyan */
  --neon-pink: 326, 95%, 60%;     /* #ec4899 Laser Pink */
  --emerald: 158, 70%, 48%;       /* #10b981 Success Green */
  --warning: 38, 95%, 55%;        /* #fbbf24 Gold Star */
  --crimson: 348, 85%, 55%;       /* #ef4444 Error Red */
  
  /* Layout Sizing & Typography */
  --font-cosmic: 'Outfit', 'Noto Sans SC', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  
  /* Shadow & Glow Utilities */
  --glow-purple: 0 0 15px hsla(var(--neon-purple), 0.5);
  --glow-cyan: 0 0 15px hsla(var(--neon-cyan), 0.5);
  --glow-green: 0 0 15px hsla(var(--emerald), 0.5);
  --glow-red: 0 0 15px hsla(var(--crimson), 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

body {
  font-family: var(--font-cosmic);
  background-color: hsl(var(--space-bg-1));
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

button, input {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cursor-pointer {
  cursor: pointer;
}

/* ==========================================================================
   BACKGROUND SPACE ANIMATIONS
   ========================================================================== */

.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(ellipse at bottom, hsl(var(--space-bg-2)) 0%, hsl(var(--space-bg-1)) 100%);
}

/* Three layer star parallax effect */
.stars, .stars2, .stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 80px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 300px 220px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 400px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 600px 150px, #fff, rgba(0,0,0,0)),
    radial-gradient(2.5px 2.5px at 750px 500px, rgba(255,255,255,0.8), rgba(0,0,0,0));
  background-repeat: repeat;
}

.stars {
  background-size: 800px 800px;
  animation: spaceFloat 180s linear infinite;
  opacity: 0.5;
}

.stars2 {
  background-size: 600px 600px;
  animation: spaceFloat 120s linear infinite;
  opacity: 0.35;
}

.stars3 {
  background-size: 400px 400px;
  animation: spaceFloat 80s linear infinite;
  opacity: 0.2;
}

.nebula-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  mix-blend-mode: screen;
}

.nebula-glow.violet {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, hsl(var(--neon-purple)) 0%, transparent 70%);
  top: -10vw;
  right: -5vw;
  animation: nebulaPulse 12s ease-in-out infinite alternate;
}

.nebula-glow.cyan {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, hsl(var(--neon-cyan)) 0%, transparent 70%);
  bottom: -15vw;
  left: -10vw;
  animation: nebulaPulse 18s ease-in-out infinite alternate-reverse;
}

@keyframes spaceFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes nebulaPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
  100% { transform: scale(1.15) translate(3%, 5%); opacity: 0.2; }
}

/* ==========================================================================
   APP CONTAINER & HUD LAYOUT
   ========================================================================== */

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.app-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin-bottom: 24px;
  position: sticky;
  top: 10px;
  z-index: 900;
  transition: border-color 0.3s;
}

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

.logo-icon {
  font-size: 32px;
  animation: floatRocket 3s ease-in-out infinite;
}

.logo-text h1 {
  font-size: 20px;
  background: linear-gradient(135deg, #fff 30%, hsl(var(--neon-cyan)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
}

.hud-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hud-stat-label {
  color: #94a3b8;
  font-size: 11px;
}

/* Highlight wrong word capsule */
.button-repair {
  cursor: pointer;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: hsl(var(--crimson));
  position: relative;
}

.button-repair:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
  transform: translateY(-2px);
}

.button-repair.active-attention {
  animation: hudAlertPulse 2s infinite;
}

.hud-stat-badge {
  font-size: 10px;
  background: hsl(var(--crimson));
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 700;
}

@keyframes hudAlertPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); border-color: rgba(239, 68, 68, 0.1); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); border-color: rgba(239, 68, 68, 0.4); }
}

/* ==========================================================================
   COMMON GLASS PANEL & CORE UI BUTTONS
   ========================================================================== */

.glass-panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 24px;
}

/* Standard Buttons */
.btn-primary, .btn-secondary, .btn-back {
  cursor: pointer;
  border: none;
  outline: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--neon-purple)) 0%, hsl(var(--neon-cyan)) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  box-shadow: var(--glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px hsla(var(--neon-cyan), 0.6), var(--glow-purple);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #64748b;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-back {
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.btn-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   VIEW CONTROLLER (Same-Document Transitions Support)
   ========================================================================== */

.app-view {
  display: none;
  animation: viewFadeIn 0.4s ease-out both;
}

.app-view.active {
  display: block;
}

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

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

.view-header h2 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.view-header .subtitle {
  color: #94a3b8;
  font-size: 14px;
}

/* ==========================================================================
   VIEW 1: CONSTELLATION DASHBOARD
   ========================================================================== */

.constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.constellation-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.constellation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background 0.4s;
}

.constellation-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.constellation-card.grade-3::before { background: linear-gradient(90deg, hsl(var(--neon-purple)), hsl(var(--neon-cyan))); }
.constellation-card.grade-4::before { background: linear-gradient(90deg, hsl(var(--neon-cyan)), hsl(var(--emerald))); }
.constellation-card.grade-5::before { background: linear-gradient(90deg, hsl(var(--emerald)), hsl(var(--warning))); }
.constellation-card.grade-6::before { background: linear-gradient(90deg, hsl(var(--warning)), hsl(var(--neon-pink))); }

.constellation-stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-size: cover;
  pointer-events: none;
  background-image: radial-gradient(circle at 80% 20%, #fff 1px, transparent 1px);
}

.constellation-header {
  position: relative;
  z-index: 2;
}

.constellation-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: hsl(var(--neon-cyan));
  margin-bottom: 4px;
  display: block;
}

.constellation-card:nth-child(even) .constellation-label {
  color: hsl(var(--neon-purple));
}

.constellation-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.constellation-nickname {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.constellation-progress-group {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.progress-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.progress-pct {
  color: #fff;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, hsl(var(--neon-purple)) 0%, hsl(var(--neon-cyan)) 100%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.constellation-card.grade-4 .progress-bar { background: linear-gradient(90deg, hsl(var(--neon-cyan)) 0%, hsl(var(--emerald)) 100%); }
.constellation-card.grade-5 .progress-bar { background: linear-gradient(90deg, hsl(var(--emerald)) 0%, hsl(var(--warning)) 100%); }
.constellation-card.grade-6 .progress-bar { background: linear-gradient(90deg, hsl(var(--warning)) 0%, hsl(var(--neon-pink)) 100%); }

/* ==========================================================================
   VIEW 2: PLANETS GRID (GRADE UNITS)
   ========================================================================== */

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

.planet-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.planet-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.planet-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
  opacity: 0.15;
  top: -40px;
  right: -40px;
  transition: opacity 0.3s, transform 0.3s;
}

.planet-card:hover::after {
  opacity: 0.25;
  transform: scale(1.1);
}

/* Planet variations */
.planet-card.planet-1::after { background: hsl(var(--neon-purple)); }
.planet-card.planet-2::after { background: hsl(var(--neon-cyan)); }
.planet-card.planet-3::after { background: hsl(var(--neon-pink)); }
.planet-card.planet-4::after { background: hsl(var(--emerald)); }
.planet-card.planet-5::after { background: hsl(var(--warning)); }
.planet-card.planet-6::after { background: hsl(var(--crimson)); }

.planet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.planet-info h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 2px;
}

.planet-meta {
  font-size: 12px;
  color: #94a3b8;
}

.planet-avatar {
  font-size: 32px;
  animation: floatPlanet 6s ease-in-out infinite alternate;
}

.planet-card:nth-child(even) .planet-avatar {
  animation-delay: -3s;
}

.planet-progress-section {
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

.planet-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.planet-progress-val {
  color: #e2e8f0;
  font-weight: 700;
}

.planet-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.btn-action {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-action span.icon {
  font-size: 16px;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-action.mode-explore:hover { border-color: hsla(var(--neon-purple), 0.5); box-shadow: 0 0 10px hsla(var(--neon-purple), 0.2); }
.btn-action.mode-docking:hover { border-color: hsla(var(--neon-cyan), 0.5); box-shadow: 0 0 10px hsla(var(--neon-cyan), 0.2); }
.btn-action.mode-cruise:hover { border-color: hsla(var(--emerald), 0.5); box-shadow: 0 0 10px hsla(var(--emerald), 0.2); }

.btn-action.completed {
  border-color: hsla(var(--emerald), 0.4);
  background: rgba(16, 185, 129, 0.05);
  color: hsl(var(--emerald));
}

.btn-action.completed::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 900;
}

/* Animations for planet graphics */
@keyframes floatPlanet {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(8deg); }
}

@keyframes floatRocket {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-3deg); }
}

/* ==========================================================================
   VIEW 3: EXPLORE & FLIP CARD (理解)
   ========================================================================== */

.learning-header {
  margin-bottom: 24px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.learning-title-group {
  flex-grow: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.learning-title-group h3 {
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}

.progress-bar-container {
  flex-grow: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, hsl(var(--neon-purple)) 0%, hsl(var(--neon-cyan)) 100%);
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #94a3b8;
  min-width: 40px;
  text-align: right;
}

/* 3D Flash Card Deck Container */
.explore-deck-container {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  margin: 36px 0;
}

.word-card-container {
  width: 100%;
  max-width: 480px;
  height: 380px;
  cursor: pointer;
}

.word-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.word-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.3s;
}

.card-front {
  background: radial-gradient(circle at 50% 120%, rgba(139, 92, 246, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(139, 92, 246, 0.2);
}

.card-back {
  background: radial-gradient(circle at 50% 120%, rgba(6, 182, 212, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(6, 182, 212, 0.2);
  transform: rotateY(180deg);
}

.card-badge {
  position: absolute;
  top: 20px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.card-category-tag {
  position: absolute;
  top: 42px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.12);
  color: hsl(var(--neon-purple));
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.card-emoji {
  font-size: 72px;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.card-word-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  word-wrap: break-word;
  word-break: break-all;
}

.card-phonetic-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 24px;
}

.card-phonetic {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: #94a3b8;
}

.btn-speak-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-speak-icon:hover {
  background: hsl(var(--neon-cyan));
  color: #000;
  transform: scale(1.1);
  box-shadow: var(--glow-cyan);
}

.btn-speak-icon.small {
  width: 28px;
  height: 28px;
}

.card-meaning-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.card-sentence-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.sentence-box {
  text-align: left;
}

.sent-en-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.sent-en-row span {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #e2e8f0;
}

.sent-zh-row {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}

.card-hint {
  position: absolute;
  bottom: 24px;
  font-size: 12px;
  color: #475569;
}

/* Learning Controllers Footers */
.learning-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.learning-footer button {
  min-width: 130px;
}

/* ==========================================================================
   VIEW 4: DOCKING CHALLENGE MODE (记忆)
   ========================================================================== */

.docking-game-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.docking-space-arena {
  width: 100%;
  max-width: 600px;
  height: 240px;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 80%), rgba(255, 255, 255, 0.01);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

.rocket-ship {
  font-size: 48px;
  position: absolute;
  bottom: 15px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), bottom 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 5;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.docking-target {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  position: absolute;
  top: 30px;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.docking-target.correct {
  border-color: hsl(var(--emerald));
  box-shadow: var(--glow-green), 0 4px 20px rgba(0,0,0,0.3);
}

.docking-target.incorrect {
  border-color: hsl(var(--crimson));
  box-shadow: var(--glow-red), 0 4px 20px rgba(0,0,0,0.3);
  animation: shakeWord 0.5s ease-in-out;
}

.question-word {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.question-phonetic {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #64748b;
  margin-top: 2px;
  display: inline-block;
  margin-right: 6px;
}

.docking-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

.option-bay {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.option-bay:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: #fff;
}

.option-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  color: #64748b;
  transition: all 0.2s;
  flex-shrink: 0;
}

.option-bay:hover .option-indicator {
  border-color: hsl(var(--neon-cyan));
  color: hsl(var(--neon-cyan));
}

/* Success / Fail states of options */
.option-bay.correct-choice {
  background: rgba(16, 185, 129, 0.1);
  border-color: hsl(var(--emerald));
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.option-bay.correct-choice .option-indicator {
  border-color: hsl(var(--emerald));
  background: hsl(var(--emerald));
  color: #000;
  font-weight: 800;
}

.option-bay.incorrect-choice {
  background: rgba(239, 68, 68, 0.1);
  border-color: hsl(var(--crimson));
  color: #94a3b8;
}

.option-bay.incorrect-choice .option-indicator {
  border-color: hsl(var(--crimson));
  background: hsl(var(--crimson));
  color: #fff;
  font-weight: 800;
}

.game-footer {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.15);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.03);
}

.glow-text {
  color: hsl(var(--warning));
  text-shadow: 0 0 10px hsla(var(--warning), 0.6);
  font-family: 'Outfit', sans-serif;
}

@keyframes shakeWord {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* ==========================================================================
   VIEW 5: CRUISE CHALLENGE MODE (运用)
   ========================================================================== */

.cruise-game-layout {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cruise-card {
  width: 100%;
  max-width: 580px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(16, 185, 129, 0.15);
}

.cruise-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: hsl(var(--emerald));
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cruise-meaning-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.cruise-emoji {
  font-size: 52px;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

.cruise-zh-meaning {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.cruise-phonetic {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #64748b;
  margin-top: 4px;
  display: inline-block;
  margin-right: 6px;
}

/* Spelling Inputs System */
.spell-workspace {
  margin-bottom: 28px;
  position: relative;
}

.word-input-slots {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.letter-slot {
  width: 36px;
  height: 48px;
  border-bottom: 3px solid #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: lowercase;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  cursor: text;
}

.letter-slot.active {
  border-bottom-color: hsl(var(--neon-cyan));
  animation: cursorBlink 1s step-end infinite;
}

.letter-slot.filled {
  border-bottom-color: #64748b;
}

.letter-slot.correct-letter {
  border-bottom-color: hsl(var(--emerald));
  color: hsl(var(--emerald));
  text-shadow: 0 0 10px hsla(var(--emerald), 0.3);
}

.letter-slot.incorrect-letter {
  border-bottom-color: hsl(var(--crimson));
  color: hsl(var(--crimson));
  text-shadow: 0 0 10px hsla(var(--crimson), 0.3);
  animation: slotShake 0.4s;
}

/* Hidden native input overlay */
#cruise-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: default;
  z-index: 10;
}

@keyframes cursorBlink {
  from, to { border-bottom-color: transparent; }
  50% { border-bottom-color: hsl(var(--neon-cyan)); }
}

@keyframes slotShake {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  75% { transform: translateY(4px); }
}

/* Sentence Context Box */
.cruise-sentence-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  margin-bottom: 24px;
}

.cruise-sentence-box .sent-en {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.sent-blank-highlight {
  color: hsl(var(--neon-cyan));
  font-weight: 700;
  border-bottom: 1px dashed hsl(var(--neon-cyan));
  padding: 0 4px;
  text-shadow: 0 0 8px hsla(var(--neon-cyan), 0.4);
}

.sent-blank-highlight.correct {
  color: hsl(var(--emerald));
  border-bottom-color: hsl(var(--emerald));
  text-shadow: 0 0 8px hsla(var(--emerald), 0.4);
}

.cruise-sentence-box .sent-zh {
  font-size: 13px;
  color: #64748b;
}

/* Keyboard helper for visual clicking and phone users */
.keyboard-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 440px;
}

.keyboard-key {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #cbd5e1;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: lowercase;
  transition: all 0.15s;
  user-select: none;
}

.keyboard-key:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.keyboard-key:active {
  transform: translateY(0);
}

.keyboard-key.used {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   VIEW 6: SPACE CAPSULE REPAIR VIEW (错题本)
   ========================================================================== */

.repair-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.repair-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  border: 1px solid rgba(255,255,255,0.03);
}

.repair-stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.repair-stat-box .val {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

#repair-total-damaged {
  color: hsl(var(--crimson));
  text-shadow: 0 0 10px hsla(var(--crimson), 0.3);
}

#repair-integrity {
  color: hsl(var(--emerald));
  text-shadow: 0 0 10px hsla(var(--emerald), 0.3);
}

.repair-stat-box .lbl {
  font-size: 12px;
  color: #64748b;
}

.repair-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
}

.damaged-list-header h3 {
  font-size: 18px;
  color: #fff;
  border-left: 3px solid hsl(var(--crimson));
  padding-left: 10px;
}

.damaged-words-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom Scrollbar for list panels */
.damaged-words-list::-webkit-scrollbar {
  width: 6px;
}
.damaged-words-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
}
.damaged-words-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.damaged-words-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

.damaged-word-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}

.damaged-word-item:hover {
  border-color: rgba(239, 68, 68, 0.25);
}

.damaged-word-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.damaged-word-emoji {
  font-size: 28px;
}

.damaged-word-details .w {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.damaged-word-details .p {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #64748b;
  margin-left: 6px;
}

.damaged-word-details .m {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

.damaged-word-meta {
  font-size: 11px;
  color: #475569;
}

.damaged-word-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.repair-progress-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.repair-progress-lbl {
  font-size: 10px;
  color: #94a3b8;
}

.repair-progress-track {
  width: 80px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.repair-progress-bar {
  height: 100%;
  background: hsl(var(--neon-purple));
  width: 0%;
  transition: width 0.3s;
}

.repair-progress-bar.stage-1 { background: hsl(var(--neon-purple)); width: 50%; }
.repair-progress-bar.stage-2 { background: hsl(var(--emerald)); width: 100%; }

.btn-item-repair {
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-item-repair:hover {
  background: hsl(var(--crimson));
  border-color: hsl(var(--crimson));
  color: #fff;
  transform: scale(1.1);
  box-shadow: var(--glow-red);
}

.empty-repair-message {
  text-align: center;
  padding: 48px;
  color: #64748b;
  font-size: 15px;
}

/* ==========================================================================
   DIALOG OVERLAY / FEEDBACK POPUP
   ========================================================================== */

.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 13, 25, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dialog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dialog-box {
  width: 90%;
  max-width: 400px;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.25);
  text-align: center;
  padding: 36px 28px;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-purple);
}

.dialog-overlay.active .dialog-box {
  transform: scale(1);
}

.dialog-emoji {
  font-size: 64px;
  margin-bottom: 16px;
  animation: dialogEmojiJump 1s ease-in-out infinite alternate;
}

.dialog-title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.dialog-message {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 24px;
}

.dialog-rewards {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.reward-item {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: hsl(var(--warning));
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  padding: 8px 24px;
  border-radius: 30px;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  animation: pulseGold 2s infinite;
}

.dialog-buttons {
  display: flex;
  justify-content: center;
}

.dialog-buttons button {
  width: 100%;
}

@keyframes dialogEmojiJump {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.05); }
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 768px) {
  .app-container {
    padding: 12px;
  }
  
  .app-hud {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
  }
  
  .hud-left {
    display: flex;
    justify-content: center;
  }
  
  .hud-right {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  
  .hud-stat {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 90px;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .hud-stat-value {
    font-size: 14px;
  }
  
  .hud-stat-badge {
    display: none;
  }
  
  .logo-icon {
    font-size: 26px;
  }
  
  .logo-text h1 {
    font-size: 16px;
  }
  
  .logo-text span {
    font-size: 8px;
  }
  
  .view-header h2 {
    font-size: 22px;
  }
  
  .planets-grid {
    grid-template-columns: 1fr;
  }
  
  .word-card-container {
    height: 340px;
  }
  
  .card-face {
    padding: 24px;
  }
  
  .card-word-title {
    font-size: 32px;
  }
  
  .card-meaning-title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .docking-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .option-bay {
    padding: 14px 18px;
    font-size: 14px;
  }
  
  .letter-slot {
    width: 28px;
    height: 40px;
    font-size: 22px;
  }
  
  .repair-summary {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    text-align: center;
  }
  
  .repair-divider {
    width: 100%;
    height: 1px;
  }
  
  .repair-action-box button {
    width: 100%;
  }
}

.main-content {
  flex: 1;
}

.app-footer {
  text-align: center;
  padding: 24px 0 8px 0;
  margin-top: 40px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-link {
  color: hsl(var(--neon-cyan));
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
  text-shadow: 0 0 8px hsla(var(--neon-cyan), 0.2);
}

.footer-link:hover {
  color: #fff;
  text-shadow: var(--glow-cyan);
}

/* PDF Link in HUD */
.button-pdf {
  text-decoration: none;
  cursor: pointer;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.button-pdf:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* PDF Download Banner in Dashboard */
.pdf-download-banner {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.pdf-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pdf-icon {
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.pdf-text-info h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 700;
}

.pdf-text-info p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}

.pdf-banner-actions {
  display: flex;
  gap: 16px;
}

.btn-primary-link, .btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.btn-primary-link {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  box-shadow: var(--glow-cyan);
}

.btn-primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px hsla(var(--neon-cyan), 0.5);
  filter: brightness(1.1);
}

.btn-secondary-link {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: var(--glass-border);
}

.btn-secondary-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .pdf-download-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    text-align: center;
  }
  .pdf-banner-content {
    flex-direction: column;
    gap: 12px;
  }
  .pdf-banner-actions {
    flex-direction: column;
    gap: 12px;
  }
  .btn-primary-link, .btn-secondary-link {
    width: 100%;
  }
}

/* Progress Sync Page Styles */
.button-sync {
  cursor: pointer;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: hsl(var(--neon-cyan));
}

.button-sync:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.sync-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sync-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sync-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  transition: border-color 0.3s, background 0.3s;
}

.sync-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.sync-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.sync-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.sync-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 320px;
}

.sync-card button {
  width: 100%;
  max-width: 220px;
}

.sync-guide-box {
  background: rgba(6, 182, 212, 0.03);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.sync-guide-box h4 {
  font-size: 15px;
  color: hsl(var(--neon-cyan));
  margin-bottom: 12px;
}

.sync-guide-box ol {
  padding-left: 20px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sync-danger-zone {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.sync-danger-zone h4 {
  font-size: 15px;
  color: hsl(var(--crimson));
  margin-bottom: 8px;
}

.danger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #64748b;
}

.btn-danger {
  cursor: pointer;
  border: none;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: hsl(var(--crimson));
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-danger:hover {
  background: hsl(var(--crimson));
  color: #fff;
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .sync-options-grid {
    grid-template-columns: 1fr;
  }
  .danger-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }
  .btn-danger {
    width: 100%;
  }
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
}
