.fc-page { padding-top: 60px; min-height: 100vh; }

.fc-header {
  padding: var(--space-xl) 0 var(--space-md);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.fc-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), transparent);
}

.fc-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section filter */
.section-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  overflow-x: auto;
}
.section-btn {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.section-btn.active {
  background: rgba(56,217,255,0.1);
  border-color: rgba(56,217,255,0.4);
  color: var(--cyan);
}
.section-btn:hover { border-color: var(--border-light); color: var(--text-secondary); }

/* Mode toggle */
.mode-row {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-md);
}
.mode-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.mode-btn.active {
  background: rgba(56,217,255,0.1);
  border-color: rgba(56,217,255,0.4);
  color: var(--cyan);
}

/* Progress */
.fc-progress-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.fc-progress-track {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.fc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 1px;
  transition: width 0.4s ease;
}
.fc-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Card wrapper */
.card-wrap {
  perspective: 1200px;
  width: 100%;
  aspect-ratio: 3/4.2;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

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

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* FRONT */
.card-front {
  background: linear-gradient(135deg, rgba(56,217,255,0.05) 0%, transparent 50%), #0a1d33;
  border: 1px solid rgba(56,217,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}
.card-front::before {
  content: '';
  position: absolute; top: 10px; left: 10px;
  width: 20px; height: 20px;
  border-top: 1px solid rgba(56,217,255,0.5);
  border-left: 1px solid rgba(56,217,255,0.5);
}
.card-front::after {
  content: '';
  position: absolute; bottom: 10px; right: 10px;
  width: 20px; height: 20px;
  border-bottom: 1px solid rgba(245,185,76,0.5);
  border-right: 1px solid rgba(245,185,76,0.5);
}
.front-category {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(56,217,255,0.6);
  text-align: center;
}
.front-visual {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}
.front-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f3fbff;
  text-align: center;
  line-height: 1;
}
.front-hint {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: rgba(184,202,216,0.25);
  text-transform: uppercase;
  margin-top: 8px;
}

/* BACK */
.card-back {
  background: #f0ebe0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 10px;
  position: relative;
}
.card-back::before {
  content: '';
  position: absolute; top: 8px; left: 8px;
  width: 14px; height: 14px;
  border-top: 1px solid rgba(0,0,0,0.12);
  border-left: 1px solid rgba(0,0,0,0.12);
}
.card-back::after {
  content: '';
  position: absolute; bottom: 8px; right: 8px;
  width: 14px; height: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  border-right: 1px solid rgba(0,0,0,0.12);
}
.back-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  align-self: flex-start;
}
.badge-bullish   { background: #1a5c2e; color: #4ade80; }
.badge-bearish   { background: #5c1a1a; color: #f87171; }
.badge-neutral   { background: #1a3a5c; color: #60a5fa; }
.badge-context   { background: #3d2a00; color: #f5b94c; }
.badge-both      { background: #2a1a4a; color: #c084fc; }

.back-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a1d33;
  line-height: 1;
}
.back-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  border: 1px dashed rgba(0,0,0,0.1);
  min-height: 90px;
  flex-shrink: 0;
}
.back-section-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(10,29,51,0.35);
  margin-bottom: 3px;
}
.back-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #1a2a3a;
  line-height: 1.5;
}
.back-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #0a1d33;
  background: rgba(245,185,76,0.18);
  border-left: 2px solid #c07800;
  padding: 6px 8px;
  line-height: 1.45;
  border-radius: 0 2px 2px 0;
  flex-shrink: 0;
}

/* Navigation */
.card-nav {
  display: flex;
  gap: 8px;
  margin-top: var(--space-md);
}
.nav-btn {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56,217,255,0.25);
  background: rgba(56,217,255,0.06);
  color: rgba(56,217,255,0.8);
  cursor: pointer;
  transition: all var(--transition);
}
.nav-btn:hover:not(:disabled) {
  background: rgba(56,217,255,0.14);
  border-color: rgba(56,217,255,0.5);
}
.nav-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.nav-btn.flip-btn {
  background: rgba(245,185,76,0.08);
  border-color: rgba(245,185,76,0.35);
  color: var(--gold);
}
.nav-btn.flip-btn:hover {
  background: rgba(245,185,76,0.16);
  border-color: var(--gold);
}

/* Canvas for chart drawings */
.candle-group {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 80px;
  padding: 4px 8px;
}
.c { display: flex; flex-direction: column; align-items: center; }
.c-wick { width: 2px; border-radius: 1px; }
.c-body { width: 16px; border-radius: 1px; }
.bull .c-wick { background: #31e08b; }
.bull .c-body { background: #31e08b; }
.bear .c-wick { background: #ff4d63; }
.bear .c-body { background: transparent; border: 2px solid #ff4d63; }

/* Footer */
.fc-footer {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

@media (max-width: 380px) {
  .fc-shell { padding: 0 var(--space-sm); }
  .card-back { padding: 14px; gap: 8px; }
  .back-desc { font-size: 0.72rem; }
}
